code: def get_package(package):
      # type: (Package) -> types.ModuleType
      """Take a package name or module object and return the module.
  
      Raise an exception if the resolved module is not a package.
      """
      resolved = resolve(package)
      if wrap_spec(resolved).submodule_search_locations is None:
          raise TypeError(f"{package!r} is not a package")
      return resolved
  
file_path: catboost/contrib/tools/python3/src/Lib/importlib/resources/_common.py
imports: import os
  import pathlib
  import tempfile
  import functools
  import contextlib
  import types
  import importlib
  from typing import Union, Optional
  from .abc import ResourceReader, Traversable
  from ._adapters import wrap_spec
label_desc: Use image node_id 4 for calling a global function with example usage: get_package(package) and returns: resolved