code: def source_locations(pkg: str) -> str | None:
      module = find_spec(pkg)
      if module is None:
          return
      (module_path,) = module.submodule_search_locations  # type: ignore (unfinished typed)
      return cast(str, module_path)
  
file_path: BentoML/grpc-client/bentoml/_internal/utils/pkg.py
imports: from __future__ import annotations
  import importlib.metadata
  import importlib.util
  from importlib.metadata import PackageNotFoundError
  from types import ModuleType
  from typing import cast
  from packaging.version import Version
label_desc: Use image node_id 2 for calling a global function with example usage: source_locations(pkg) and returns: cast