code: def getfutureimports(entity):
      """Detects what future imports are necessary to safely execute entity source.
  
      Args:
        entity: Any object
  
      Returns:
        A tuple of future strings
      """
      if not (inspect.isfunction(entity) or inspect.ismethod(entity)):
          return tuple()
      return tuple(
          sorted(
              name
              for name, value in entity.__globals__.items()
              if getattr(value, "__module__", None) == "__future__"
          )
      )
  
file_path: DALI/dali/python/nvidia/dali/_autograph/pyct/inspect_utils.py
imports: import inspect
  import itertools
  import linecache
  import sys
  import threading
  import types
  import six
label_desc: Use image node_id 12 for calling a global function with example usage: getfutureimports(entity) and returns: tuple, tuple