code: def find_package(import_name: str):
      """Find the prefix that a package is installed under, and the path
      that it would be imported from.
  
      The prefix is the directory containing the standard directory
      hierarchy (lib, bin, etc.). If the package is not installed to the
      system (:attr:`sys.prefix`) or a virtualenv (``site-packages``),
      ``None`` is returned.
  
      The path is the entry in :attr:`sys.path` that contains the package
      for import. If the package is not installed, it's assumed that the
      package was imported from the current working directory.
      """
      package_path = _find_package_path(import_name)
      py_prefix = os.path.abspath(sys.prefix)
  
      # installed to the system
      if _path_is_relative_to(
          pathlib.PurePath(package_path), py_prefix
      ):
          return py_prefix, package_path
  
      site_parent, site_folder = os.path.split(package_path)
  
      # installed to a virtualenv
      if site_folder.lower() == "site-packages":
          parent, folder = os.path.split(site_parent)
  
          # Windows (prefix/lib/site-packages)
          if folder.lower() == "lib":
              return parent, package_path
  
          # Unix (prefix/lib/pythonX.Y/site-packages)
          if os.path.basename(parent).lower() == "lib":
              return os.path.dirname(parent), package_path
  
          # something else (prefix/site-packages)
          return site_parent, package_path
  
      # not installed
      return None, package_path
  
imports: from __future__ import annotations
  import importlib.util
  import os
  import pathlib
  import sys
  import typing
  from collections import defaultdict
  from functools import update_wrapper
  from jinja2 import FileSystemLoader
  from werkzeug.exceptions import default_exceptions
  from werkzeug.exceptions import HTTPException
  from werkzeug.utils import cached_property
  from ..None import typing
  from ..cli import AppGroup
  from ..helpers import get_root_path
  from ..templating import _default_template_ctx_processor
label_desc: Use image node_id 5 for calling a global function with example usage: find_package(import_name) and returns: None,  package_path, py_prefix,  package_path, site_parent,  package_path, parent,  package_path, os,  package_path