code: def is_resource(package: Package, name: str) -> bool:
      """True if `name` is a resource inside `package`.
  
      Directories are *not* resources.
      """
      resource = normalize_path(name)
      return any(
          traversable.name == resource and traversable.is_file()
          for traversable in _common.files(package).iterdir()
      )
  
file_path: catboost/contrib/python/setuptools/py3/pkg_resources/_vendor/importlib_resources/_legacy.py
imports: import functools
  import os
  import pathlib
  import types
  import warnings
  from typing import Union, Iterable, ContextManager, BinaryIO, TextIO, Any
  from .None import _common
label_desc: Use image node_id 8 for calling a global function with example usage: is_resource(package, name) and returns: any