code: def _get_code(code_lines, start_pos, end_pos):
      # Get relevant lines.
      lines = code_lines[start_pos[0] - 1 : end_pos[0]]
      # Remove the parts at the end of the line.
      lines[-1] = lines[-1][: end_pos[1]]
      # Remove first line indentation.
      lines[0] = lines[0][start_pos[1] :]
      return "".join(lines)
  
imports: import re
  from collections import namedtuple
  from textwrap import dedent
  from parso.python.parser import Parser
  from parso.python import tree
  from jedi._compatibility import u
  from jedi.evaluate.syntax_tree import eval_atom
  from jedi.evaluate.helpers import evaluate_call_of_leaf
  from jedi.evaluate.compiled import get_string_context_set
  from jedi.cache import call_signature_time_cache
label_desc: Use image node_id 3 for calling a global function with example usage: _get_code(code_lines, start_pos, end_pos) and returns: str