@tracing.trace
async def create_call(self, comp, arg=None):
    'Creates a call to `comp` with optional `arg`.\n\n    Args:\n      comp: As documented in `executor_base.Executor`.\n      arg: As documented in `executor_base.Executor`.\n\n    Returns:\n      An instance of `EagerValue` representing the result of the call.\n\n    Raises:\n      RuntimeError: If not executing eagerly.\n      TypeError: If the arguments are of the wrong types.\n    '
    py_typecheck.check_type(comp, EagerValue)
    if (arg is not None):
        py_typecheck.check_type(arg, EagerValue)
    if (not comp.type_signature.is_function()):
        raise TypeError('Expected a functional type, found {}'.format(comp.type_signature))
    if (comp.type_signature.parameter is not None):
        return EagerValue(comp.internal_representation(arg.internal_representation), self._tf_function_cache, comp.type_signature.result, self._device)
    elif (arg is None):
        return EagerValue(comp.internal_representation(), self._tf_function_cache, comp.type_signature.result, self._device)
    else:
        raise TypeError('Cannot pass an argument to a no-argument function.')
Creates a call to `comp` with optional `arg`.

Args:
  comp: As documented in `executor_base.Executor`.
  arg: As documented in `executor_base.Executor`.

Returns:
  An instance of `EagerValue` representing the result of the call.

Raises:
  RuntimeError: If not executing eagerly.
  TypeError: If the arguments are of the wrong types.
@tracing.trace
async def create_call(self, comp, arg=None):
    'Creates a call to `comp` with optional `arg`.\n\n    Args:\n      comp: As documented in `executor_base.Executor`.\n      arg: As documented in `executor_base.Executor`.\n\n    Returns:\n      An instance of `EagerValue` representing the result of the call.\n\n    Raises:\n      RuntimeError: If not executing eagerly.\n      TypeError: If the arguments are of the wrong types.\n    '
    py_typecheck.check_type(comp, EagerValue)
    if (arg is not None):
        py_typecheck.check_type(arg, EagerValue)
    if (not comp.type_signature.is_function()):
        raise TypeError('Expected a functional type, found {}'.format(comp.type_signature))
    if (comp.type_signature.parameter is not None):
        return EagerValue(comp.internal_representation(arg.internal_representation), self._tf_function_cache, comp.type_signature.result, self._device)
    elif (arg is None):
        return EagerValue(comp.internal_representation(), self._tf_function_cache, comp.type_signature.result, self._device)
    else:
        raise TypeError('Cannot pass an argument to a no-argument function.')