code: def context(position):
      source = position[0]
      assert not (isinstance(source, any_string_type)), (
          "Please replace filename strings with Scanning.FileSourceDescriptor instances %r"
          % source
      )
      try:
          F = source.get_lines()
      except UnicodeDecodeError:
          # file has an encoding problem
          s = "[unprintable code]\n"
      else:
          s = "".join(F[max(0, position[1] - 6) : position[1]])
          s = "...\n%s%s^\n" % (s, " " * (position[2] - 1))
      s = "%s\n%s%s\n" % ("-" * 60, s, "-" * 60)
      return s
  
imports: from __future__ import absolute_import
  import sys
  from contextlib import contextmanager
  from ..Utils import open_new_file
  from .None import DebugFlags
  from .None import Options
label_desc: Use image node_id 1 for calling a global function with example usage: context(position) and returns: s