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","."]
code: def __init__(self, func_or_method, *args, **kwargs):
      self._func_or_method = func_or_method
      self._args = args
      self._kwargs = copy.copy(kwargs)
      getargspec = (
          inspect.getargspec if six.PY2 else inspect.getfullargspec
      )
      arg_names = getargspec(func_or_method).args
      self._arg_names = arg_names
      self._self = None
      if has_self_cls_arg(func_or_method):
          # Skip the first arg_name self/cls
          self._arg_names = arg_names[1:]
          if is_unbound(func_or_method):
              # For unbound methods we require self/cls as args[0].
              if not args:
                  raise ValueError(
                      "func_or_method is unbond, but not class/instance provided."
                  )
              else:
                  self._self = args[0]
                  self._args = args[1:]
  
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 1 to create a new Future object from inherited base classes: object with example: obj = Future(func_or_method)