code: def resolve_entity(node, source, entity):
      """Like resolve, but extracts the context information from an entity."""
      lines, lineno = inspect.getsourcelines(entity)
      filepath = inspect.getsourcefile(entity)
  
      # Poor man's attempt at guessing the column offset: count the leading
      # whitespace. This might not work well with tabs.
      definition_line = lines[0]
      col_offset = len(definition_line) - len(definition_line.lstrip())
  
      resolve(node, source, filepath, lineno, col_offset)
  
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 3 for calling a global function with example usage: resolve_entity(node, source, entity) without return types