class_docstr: BaseIOTensor
  
  A `BaseIOTensor` is a basic `IOTensor` with only one component.
  It is associated with a `Tensor` of `shape` and `dtype`, with
  data backed by IO. It is the building block for `IOTensor`.
  For example, a `CSVIOTensor` consists of multiple `BaseIOTensor`
  where each one is a column of the CSV.
  
  All `IOTensor` types are either a subclass of `BaseIOTensor`,
  or are a composite of a collection of `BaseIOTensor`.
  
  The additional properties exposed by `BaseIOTensor` are `shape`
  and `dtype` associated with counterparts in `Tensor`.
class_docstr_tok: ["BaseIOTensor","A","`","BaseIOTensor","`","is","a","basic","`","IOTensor","`","with","only","one","component",".","It","is","associated","with","a","`","Tensor","`","of","`","shape","`","and","`","dtype","`",",","with","data","backed","by","IO",".","It","is","the","building","block","for","`","IOTensor","`",".","For","example",",","a","`","CSVIOTensor","`","consists","of","multiple","`","BaseIOTensor","`","where","each","one","is","a","column","of","the","CSV",".","All","`","IOTensor","`","types","are","either","a","subclass","of","`","BaseIOTensor","`",",","or","are","a","composite","of","a","collection","of","`","BaseIOTensor","`",".","The","additional","properties","exposed","by","`","BaseIOTensor","`","are","`","shape","`","and","`","dtype","`","associated","with","counterparts","in","`","Tensor","`","."]
code: def __init__(self, spec, function, internal=False):
      # function used for dataset should not be partitioned.
      self._function = function
      super().__init__(spec, internal=internal)
  
imports: import tensorflow
label_desc: Use image node_id 1 to create a new BaseIOTensor object from inherited base classes: _IOTensor with example: obj = BaseIOTensor(spec, function, internal)