class_docstr: Component for forwarding parameters to APIs
  
  Args:
      url: url of the API.
      out: count of expected returned values or their names in a chainer.
      param_names: list of parameter names for API requests.
      debatchify: if ``True``, single instances will be sent to the API endpoint instead of batches.
  
  Attributes:
      url: url of the API.
      out_count: count of expected returned values.
      param_names: list of parameter names for API requests.
      debatchify: if True, single instances will be sent to the API endpoint instead of batches.
code: def __init__(
      self,
      url: str,
      out: [int, list],
      param_names: [list, tuple] = None,
      debatchify: bool = False,
      *args,
      **kwargs,
  ):
      self.url = url
      if param_names is None:
          param_names = kwargs.get("in", ())
      self.param_names = param_names
      self.out_count = out if isinstance(out, int) else len(out)
      self.debatchify = debatchify
  
file_path: DeepPavlov/deeppavlov/models/api_requester/api_requester.py
imports: import asyncio
  from typing import Any, List, Dict, AsyncIterable
  import requests
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.component import Component
label_desc: Use image node_id 1 to create a new ApiRequester object from inherited base classes: Component with example: obj = ApiRequester(url, out, param_names, debatchify)