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",")",";"]
docstr: See https://www.tensorflow.org/api_docs/python/tf/Graph#name_scope.
docstr_tok: ["See","https",":","\/\/www.tensorflow.org\/api_docs\/python\/tf\/Graph","#","name_scope","."]
code: def _sanitize(self, name):
      """See https://www.tensorflow.org/api_docs/python/tf/Graph#name_scope."""
      # TensorFlow doesn't like leading underscores at the top level.
      if name and name.startswith("_"):
          name = "fn" + name
      return name
  
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 2 for calling the FunctionScope obj's underlying member method code with example usage: obj._sanitize(name) and returns: name