code: def make_shell_context(self) -> dict:
          
          context = {'app': self, 'g': g}
          for processor in self.shell_context_processors:
              context.update(processor())
          return context
docs: Create a context for interactive shell usage.
  
          The :attr:`shell_context_processors` can be used to add
          additional context.