class_docstr: Converts a function or class method call into a future callable.
class_docstr_tok: ["Converts","a","function","or","class","method","call","into","a","future","callable","."]
docstr: If *args/**kwargs are given they would replace those given at init.
  
  Args:
    *args: List of extra arguments.
    **kwargs: Dict of extra keyword arguments.
  
  Returns:
    The result of func_or_method(*args, **kwargs).
docstr_tok: ["If","*","args\/","*","*","kwargs","are","given","they","would","replace","those","given","at","init",".","Args",":","*","args",":","List","of","extra","arguments",".","*","*","kwargs",":","Dict","of","extra","keyword","arguments",".","Returns",":","The","result","of","func_or_method","(","*","args",",","*","*","kwargs",")","."]
code: def __call__(self, *args, **kwargs):
      """If *args/**kwargs are given they would replace those given at init.
  
      Args:
        *args: List of extra arguments.
        **kwargs: Dict of extra keyword arguments.
  
      Returns:
        The result of func_or_method(*args, **kwargs).
      """
      # By default use the init args.
      call_args = args or self._args
      call_kwargs = copy.copy(self._kwargs)
      for arg_name in self._arg_names[: len(args)]:
          # Remove any original kwargs replaced by new positional args.
          call_kwargs.pop(arg_name, None)
      call_kwargs.update(kwargs)
      if self._self:
          return self._func_or_method(
              self._self, *call_args, **call_kwargs
          )
      return self._func_or_method(*call_args, **call_kwargs)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import functools
  import inspect
  from absl import logging
  import numpy
  import six
  import tensorflow
  from tf_agents.utils import common
  from tensorflow.python.util import tf_decorator
label_desc: Use image node_id 2 for calling the Future obj's underlying member method code with example usage: obj.__call__() and returns: self, self