from tensorflow.python.framework import ops as _ops

def resource_using_op(resource, name=None):
  r"""TODO: add doc.

  Args:
    resource: A `Tensor` of type `resource`.
    name: A name for the operation (optional).

  Returns:
    The created Operation.
  """
  result = _op_def_lib.apply_op("ResourceUsingOp", resource=resource,
                                name=name)
  return result


_ops.RegisterShape("ResourceUsingOp")(None)
_stub_resource_handle_op_outputs = ["resource"]


def stub_resource_handle_op(container=None, shared_name=None, name=None):
  r"""Creates a handle to a StubResource

  Args:
    container: An optional `string`. Defaults to `""`.
    shared_name: An optional `string`. Defaults to `""`.
    name: A name for the operation (optional).

  Returns:
    A `Tensor` of type `resource`.
  """
