code: def is_in_allowlist_cache(entity, options):
      try:
          return _ALLOWLIST_CACHE.has(entity, options)
      except TypeError:
          # Catch-all for entities that are unhashable or don't allow weakrefs.
          return False
  
file_path: DALI/dali/python/nvidia/dali/_autograph/impl/conversion.py
imports: import functools
  import inspect
  import sys
  import unittest
  from nvidia.dali._autograph.core import config
  from nvidia.dali._autograph.pyct import cache
  from nvidia.dali._autograph.pyct import inspect_utils
  from nvidia.dali._autograph.utils import ag_logging
label_desc: Use image node_id 5 for calling a global function with example usage: is_in_allowlist_cache(entity, options) and returns: _ALLOWLIST_CACHE, False