code: def with_function_scope(thunk, scope_name, options):
      """Inline version of the FunctionScope context manager."""
      with FunctionScope("lambda_", scope_name, options) as scope:
          return thunk(scope)
  
file_path: DALI/dali/python/nvidia/dali/_autograph/core/function_wrappers.py
imports: from nvidia.dali._autograph.core import ag_ctx
  from nvidia.dali._autograph.core import converter
  from nvidia.dali._autograph.operators import variables
label_desc: Use image node_id 1 for calling a global function with example usage: with_function_scope(thunk, scope_name, options) and returns: thunk