class_docstr: The base class of all Executors, can be used to build encoder, indexer, etc.
  
  :class:`jina.Executor` as an alias for this class.
  
  EXAMPLE USAGE
  
  .. code-block:: python
  
      from jina import Executor, requests, Flow
  
  
      class MyExecutor(Executor):
          @requests
          def foo(self, docs, **kwargs):
              print(docs)  # process docs here
  
  
      f = Flow().add(uses=Executor)  # you can add your Executor to a Flow
  
  Any executor inherited from :class:`BaseExecutor` always has the **meta** defined in :mod:`jina.executors.metas.defaults`.
  
  All arguments in the :func:`__init__` can be specified with a ``with`` map in the YAML config. Example:
  
  .. highlight:: python
  .. code-block:: python
  
      class MyAwesomeExecutor(Executor):
          def __init__(awesomeness=5):
              pass
  
  is equal to
  
  .. highlight:: yaml
  .. code-block:: yaml
  
      jtype: MyAwesomeExecutor
      with:
          awesomeness: 5
class_docstr_tok: ["The","base","class","of","all","Executors",",","can","be","used","to","build","encoder",",","indexer",",","etc",".",":","class",":","`","jina.Executor","`","as","an","alias","for","this","class",".","EXAMPLE","USAGE","..","code-block",":",":","python","from","jina","import","Executor",",","requests",",","Flow","class","MyExecutor","(","Executor",")",":","@","requests","def","foo","(","self",",","docs",",","*","*","kwargs",")",":","print","(","docs",")","#","process","docs","here","f","=","Flow","(",")",".add","(","uses=Executor",")","#","you","can","add","your","Executor","to","a","Flow","Any","executor","inherited","from",":","class",":","`","BaseExecutor","`","always","has","the","*","*","meta","*","*","defined","in",":","mod",":","`","jina.executors.metas.defaults","`",".","All","arguments","in","the",":","func",":","`","__init__","`","can","be","specified","with","a","``","with","``","map","in","the","YAML","config",".","Example",":","..","highlight",":",":","python","..","code-block",":",":","python","class","MyAwesomeExecutor","(","Executor",")",":","def","__init__","(","awesomeness=5",")",":","pass","is","equal","to","..","highlight",":",":","yaml","..","code-block",":",":","yaml","jtype",":","MyAwesomeExecutor","with",":","awesomeness",":","5"]
docstr: Get the request dictionary corresponding to this specific class
  
  :return: Returns the requests corresponding to the specific Executor instance class
code: def requests(self):
      """
      Get the request dictionary corresponding to this specific class
  
      :return: Returns the requests corresponding to the specific Executor instance class
      """
      if hasattr(self, "_requests"):
          return self._requests
      else:
          if not hasattr(self, "requests_by_class"):
              self.requests_by_class = {}
          if self.__class__.__name__ not in self.requests_by_class:
              self.requests_by_class[self.__class__.__name__] = {}
          # we need to copy so that different instances with different (requests) in input do not disturb one another
          self._requests = copy.copy(
              self.requests_by_class[self.__class__.__name__]
          )
          return self._requests
  
imports: from __future__ import annotations
  import asyncio
  import contextlib
  import copy
  import functools
  import inspect
  import multiprocessing
  import os
  import threading
  import warnings
  from collections.abc import AsyncGenerator, AsyncIterator, Generator, Iterator
  from types import SimpleNamespace
  from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Type, TypeVar, Union, _GenericAlias, overload
  from jina._docarray import DocumentArray, docarray_v2
  from jina.constants import __args_executor_init__, __cache_path__, __default_endpoint__
  from jina.enums import BetterEnum, ProviderType
  from jina.helper import ArgNamespace, T, get_or_reuse_loop, iscoroutinefunction, typename
  from jina.importer import ImportExtensions
  from jina.jaml import JAML, JAMLCompatible, env_var_regex, internal_var_regex
  from jina.logging.logger import JinaLogger
  from jina.serve.executors.decorators import _init_requests_by_class, avoid_concurrent_lock_cls
  from jina.serve.executors.metas import get_executor_taboo
  from jina.serve.helper import _get_workspace_from_name_and_shards, store_init_kwargs, wrap_func
  from jina.serve.instrumentation import MetricsTimer
label_desc: Use image node_id 6 for calling the BaseExecutor obj's underlying member method code with example usage: obj.requests() and returns: self, self