class_docstr: Annotates an AST with additional source information like file name.
class_docstr_tok: ["Annotates","an","AST","with","additional","source","information","like","file","name","."]
code: def _attach_origin_info(self, node):
      lineno = getattr(node, "lineno", None)
      col_offset = getattr(node, "col_offset", None)
  
      if lineno is None:
          return
  
      if self._function_stack:
          function_name = self._function_stack[-1].name
      else:
          function_name = None
  
      source_code_line = self._source_lines[lineno - 1]
      comment = self._comments_map.get(lineno)
  
      loc = Location(
          self._filepath,
          self._absolute_lineno(lineno),
          self._absolute_col_offset(col_offset),
      )
      origin = OriginInfo(loc, function_name, source_code_line, comment)
      anno.setanno(node, "lineno", lineno)
      anno.setanno(node, anno.Basic.ORIGIN, origin)
  
imports: import collections
  import difflib
  import inspect
  import os
  import tokenize
  import gast
  import six
  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 pretty_printer
label_desc: Use image node_id 4 for calling the OriginResolver obj's underlying member method code with example usage: obj._attach_origin_info(node) without return types