code: def cache_allowlisted(entity, options):
      try:
          _ALLOWLIST_CACHE[entity][options] = True
      except TypeError:
          # Catch-all for entities that are unhashable or don't allow weakrefs.
          pass
  
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 6 for calling a global function with example usage: cache_allowlisted(entity, options) without return types