code: def py__annotations__(funcdef):
      return_annotation = funcdef.annotation
      if return_annotation:
          dct = {"return": return_annotation}
      else:
          dct = {}
      for function_param in funcdef.get_params():
          param_annotation = function_param.annotation
          if param_annotation is not None:
              dct[function_param.name.value] = param_annotation
      return dct
  
imports: import os
  import re
  from parso import ParserSyntaxError, parse, split_lines
  from parso.python import tree
  from jedi._compatibility import unicode, force_unicode
  from jedi.evaluate.cache import evaluator_method_cache
  from jedi.evaluate import compiled
  from jedi.evaluate.base_context import NO_CONTEXTS, ContextSet
  from jedi.evaluate.lazy_context import LazyTreeContext
  from jedi.evaluate.context import ModuleContext
  from jedi.evaluate.helpers import is_string
  from jedi import debug
  from jedi import parser_utils
label_desc: Use image node_id 7 for calling a global function with example usage: py__annotations__(funcdef) and returns: dct