code: def builtins_reversed(evaluator, sequences, obj, arguments):
      # While we could do without this variable (just by using sequences), we
      # want static analysis to work well. Therefore we need to generated the
      # values again.
      key, lazy_context = next(arguments.unpack())
      cn = None
      if isinstance(lazy_context, LazyTreeContext):
          # TODO access private
          cn = ContextualizedNode(
              lazy_context._context, lazy_context.data
          )
      ordered = list(sequences.iterate(cn))
  
      rev = list(reversed(ordered))
      # Repack iterator values and then run it the normal way. This is
      # necessary, because `reversed` is a function and autocompletion
      # would fail in certain cases like `reversed(x).__iter__` if we
      # just returned the result directly.
      seq = iterable.FakeSequence(evaluator, "list", rev)
      arguments = ValuesArguments([ContextSet(seq)])
      return ContextSet(
          CompiledInstance(
              evaluator, evaluator.builtins_module, obj, arguments
          )
      )
  
imports: import parso
  from jedi._compatibility import force_unicode
  from jedi import debug
  from jedi.evaluate.arguments import ValuesArguments, repack_with_argument_clinic
  from jedi.evaluate import analysis
  from jedi.evaluate import compiled
  from jedi.evaluate.context.instance import AbstractInstanceContext, CompiledInstance, BoundMethod, InstanceArguments
  from jedi.evaluate.base_context import ContextualizedNode, NO_CONTEXTS, ContextSet
  from jedi.evaluate.context import ClassContext, ModuleContext, FunctionExecutionContext
  from jedi.evaluate.context import iterable
  from jedi.evaluate.lazy_context import LazyTreeContext
  from jedi.evaluate.syntax_tree import is_string
label_desc: Use image node_id 8 for calling a global function with example usage: builtins_reversed(evaluator, sequences, obj, arguments) and returns: ContextSet