code: def resolve(cand):
      # type: (Package) -> types.ModuleType
      return (
          cand
          if isinstance(cand, types.ModuleType)
          else importlib.import_module(cand)
      )
  
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 3 for calling a global function with example usage: resolve(cand) and returns: unknown