code: def _convert_to_ast(n):
      """Converts from a known data type to AST."""
      # Note: When generating AST nodes from strings/QNs in isolation, ctx is
      # unknown. ctx must be filled in according to the template being used.
      # See ReplaceTransformer.visit_Name.
      if isinstance(n, str):
          return gast.Name(
              id=n, ctx=None, annotation=None, type_comment=None
          )
      if isinstance(n, qual_names.QN):
          return n.ast()
      if isinstance(n, list):
          return [_convert_to_ast(e) for e in n]
      if isinstance(n, tuple):
          return tuple(_convert_to_ast(e) for e in n)
      return n
  
imports: import ast
  import textwrap
  import gast
  from nvidia.dali._autograph.pyct import anno
  from nvidia.dali._autograph.pyct import ast_util
  from nvidia.dali._autograph.pyct import parser
  from nvidia.dali._autograph.pyct import qual_names
label_desc: Use image node_id 1 for calling a global function with example usage: _convert_to_ast(n) and returns: n, gast, n, unknown, tuple