docstr: deprecated
docstr_tok: ["deprecated"]
code: def enqueue_tensor(self, uri, data):
      """
      deprecated
      """
      if isinstance(data, np.ndarray):
          # tensor
          data = [data]
      if not isinstance(data, list):
          raise Exception(
              "Your input is invalid, only List of ndarray and ndarray are allowed."
          )
  
      sink = pa.BufferOutputStream()
      writer = None
      for d in data:
          shape = np.array(d.shape)
          d = d.astype("float32").flatten()
  
          data_field = pa.field("data", pa.list_(pa.float32()))
          shape_field = pa.field("shape", pa.list_(pa.int64()))
          tensor_type = pa.struct([data_field, shape_field])
  
          tensor = pa.array(
              [{"data": d}, {"shape": shape}], type=tensor_type
          )
  
          tensor_field = pa.field(uri, tensor_type)
          schema = pa.schema([tensor_field])
  
          batch = pa.RecordBatch.from_arrays([tensor], schema)
          if writer is None:
              # initialize
              writer = pa.RecordBatchFileWriter(sink, batch.schema)
          writer.write_batch(batch)
  
      writer.close()
      buf = sink.getvalue()
      b = buf.to_pybytes()
      tensor_encoded = self.base64_encode_image(b)
      d = {"uri": uri, "data": tensor_encoded}
      self.__enqueue_data(d)
  
imports: import redis
  import time
  from zoo.serving.schema import *
  import httpx
  import json
  import uuid
label_desc: Use image node_id 5 for calling the InputQueue obj's underlying member method code with example usage: obj.enqueue_tensor(uri, data) without return types