code: def from_grpc(operation, operations_stub, result_type, **kwargs):
      
      refresh = functools.partial(_refresh_grpc, operations_stub, operation.name)
      cancel = functools.partial(_cancel_grpc, operations_stub, operation.name)
      return Operation(operation, refresh, cancel, result_type, **kwargs)
docs: Create an operation future using a gRPC client.
  
      This interacts with the long-running operations `service`_ (specific
      to a given API) via gRPC.
  
      .. _service: https://github.com/googleapis/googleapis/blob/\
                   050400df0fdb16f63b63e9dee53819044bffc857/\
                   google/longrunning/operations.proto#L38
  
      Args:
          operation (google.longrunning.operations_pb2.Operation): The operation.
          operations_stub (google.longrunning.operations_pb2.OperationsStub):
              The operations stub.
          result_type (:func:`type`): The protobuf result type.
          kwargs: Keyword args passed into the :class:`Operation` constructor.
  
      Returns:
          ~.api_core.operation.Operation: The operation future to track the given
              operation.