class_docstr: GRPCStreamIODataset
docstr: from_numpy
docstr_tok: ["from_numpy"]
code: def from_numpy(a, internal=False):
      """from_numpy"""
      assert internal
  
      from tensorflow_io.python.experimental import (  # pylint: disable=import-outside-toplevel
          grpc_endpoint,
      )
  
      grpc_server = grpc_endpoint.GRPCEndpoint(a)
      grpc_server.start()
      endpoint = grpc_server.endpoint()
      print("ENDPOINT: ", endpoint)
      dtype = a.dtype
      shape = list(a.shape)
      dataset = GRPCStreamIODataset(endpoint, shape, dtype)
      dataset._grpc_server = (
          grpc_server  # pylint: disable=protected-access
      )
      return dataset
  
file_path: io/tensorflow_io/python/experimental/grpc_dataset_ops.py
imports: import tensorflow
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 2 for calling the GRPCStreamIODataset obj's underlying member method code with example usage: obj.from_numpy(a, internal) and returns: dataset