class_docstr: Context manager that wraps the body of a converted function.
  
  This context manager handles various operations related to the scope of a
  function:
    * optional TF name scopes - these name scopes match the name of the
        function, for easy visualization in tensorBoard;
    * optional automatic control dependencies - this adds the same mechanism
        for control dependencies that is used by `@tf.function`; it can be
        optionally enabled when using `tf.autograph.to_graph`;
    * tracking of autograph conversion state (whether it's enabled by the user,
        conversion options);
class_docstr_tok: ["Context","manager","that","wraps","the","body","of","a","converted","function",".","This","context","manager","handles","various","operations","related","to","the","scope","of","a","function",":","*","optional","TF","name","scopes","-","these","name","scopes","match","the","name","of","the","function",",","for","easy","visualization","in","tensorBoard",";","*","optional","automatic","control","dependencies","-","this","adds","the","same","mechanism","for","control","dependencies","that","is","used","by","`","@","tf.function","`",";","it","can","be","optionally","enabled","when","using","`","tf.autograph.to_graph","`",";","*","tracking","of","autograph","conversion","state","(","whether","it","'s","enabled","by","the","user",",","conversion","options",")",";"]
code: def __init__(self, function_name, scope_name, options):
      self.name = scope_name
      self.options = options
  
      if options.user_requested:
          self.autograph_ctx = ag_ctx.ControlStatusCtx(
              ag_ctx.Status.ENABLED, options
          )
      self.callopts = options.call_options()
  
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 to create a new FunctionScope object from inherited base classes: object with example: obj = FunctionScope(function_name, scope_name, options)