check_import
Check if a package is installed before importing; if not, suggests correct package names to prevent slopsquatting and typos.
Instructions
Check whether a package is installed; if not, suggest close real names.
Use this before writing an import to avoid hallucinated or typo'd package names (a common source of slopsquatting risk).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | ||
| language | No | python |