code: def defined_names(evaluator, context):
      """
      List sub-definitions (e.g., methods in class).
  
      :type scope: Scope
      :rtype: list of Definition
      """
      filter = next(context.get_filters(search_global=True))
      names = [name for name in filter.values()]
      return [
          Definition(evaluator, n)
          for n in _sort_names_by_start_pos(names)
      ]
  
imports: import re
  from parso.python.tree import search_ancestor
  from jedi import settings
  from jedi.evaluate.utils import ignored, unite
  from jedi.cache import memoize_method
  from jedi.evaluate import imports
  from jedi.evaluate import compiled
  from jedi.evaluate.imports import ImportName
  from jedi.evaluate.context import instance
  from jedi.evaluate.context import ClassContext, FunctionExecutionContext
  from jedi.api.keywords import KeywordName
label_desc: Use image node_id 2 for calling a global function with example usage: defined_names(evaluator, context) and returns: unknown