class_docstr: Should be defined, otherwise the API returns empty types.
code: def get_item(self, index_contexts, contextualized_node):
      from jedi.evaluate.compiled import CompiledObject
      from jedi.evaluate.context.iterable import Slice, Sequence
  
      result = ContextSet()
  
      for index in index_contexts:
          if isinstance(index, Slice):
              index = index.obj
          if isinstance(index, CompiledObject):
              try:
                  index = index.get_safe_value()
              except ValueError:
                  pass
  
          if type(index) not in (
              float,
              int,
              str,
              unicode,
              slice,
              bytes,
          ):
              # If the index is not clearly defined, we have to get all the
              # possiblities.
              if (
                  isinstance(self, Sequence)
                  and self.array_type == "dict"
              ):
                  result |= self.dict_values()
              else:
                  result |= iterate_contexts(ContextSet(self))
              continue
  
          # The actual getitem call.
          try:
              getitem = self.py__getitem__
          except AttributeError:
              from jedi.evaluate import analysis
  
              # TODO this context is probably not right.
              analysis.add(
                  contextualized_node.context,
                  "type-error-not-subscriptable",
                  contextualized_node.node,
                  message="TypeError: '%s' object is not subscriptable"
                  % self,
              )
          else:
              try:
                  result |= getitem(index)
              except EvaluatorIndexError:
                  result |= iterate_contexts(ContextSet(self))
              except EvaluatorKeyError:
                  # Must be a dict. Lists don't raise KeyErrors.
                  result |= self.dict_values()
              except EvaluatorTypeError:
                  # The type is wrong and therefore it makes no sense to do
                  # anything anymore.
                  result = NO_CONTEXTS
      return result
  
imports: from parso.python.tree import ExprStmt, CompFor
  from jedi import debug
  from jedi._compatibility import Python3Method, zip_longest, unicode
  from jedi.parser_utils import clean_scope_docstring, get_doc_with_call_signature
  from jedi.common import BaseContextSet, BaseContext
  from jedi.evaluate.helpers import EvaluatorIndexError, EvaluatorTypeError, EvaluatorKeyError
label_desc: Use image node_id 5 for calling the Context obj's underlying member method code with example usage: obj.get_item(index_contexts, contextualized_node) and returns: result