class_docstr: LMDBIOTensor
code: def __init__(self, filename, internal=False):
      with tf.name_scope("LMDBIOTensor") as scope:
          resource = core_ops.io_lmdb_mapping_init(
              filename,
              container=scope,
              shared_name=f"{filename}/{uuid.uuid4().hex}",
          )
          spec = (
              tf.TensorSpec(tf.TensorShape([None]), tf.string),
              tf.TensorSpec(tf.TensorShape([None]), tf.string),
          )
  
          class _IterableInit:
              def __init__(self, func, filename):
                  self._func = func
                  self._filename = filename
  
              def __call__(self):
                  with tf.name_scope("IterableInit") as scope:
                      return self._func(
                          self._filename,
                          container=scope,
                          shared_name="{}/{}".format(
                              self._filename, uuid.uuid4().hex
                          ),
                      )
  
          class _IterableNext:
              def __init__(self, func, shape, dtype):
                  self._func = func
                  self._shape = shape
                  self._dtype = dtype
                  self._index = 0
  
              def __call__(self, resource):
                  return self._func(
                      resource,
                      start=self._index,
                      stop=self._index + 1,
                      shape=self._shape,
                      dtype=self._dtype,
                  )
  
          super().__init__(
              spec,
              _IOTensorMappingFunction(
                  core_ops.io_lmdb_mapping_read, resource
              ),
              _IterableInit(core_ops.io_lmdb_readable_init, filename),
              _IterableNext(
                  core_ops.io_lmdb_readable_read,
                  tf.TensorShape([None]),
                  tf.string,
              ),
              internal=internal,
          )
  
file_path: io/tensorflow_io/python/ops/lmdb_io_tensor_ops.py
imports: import uuid
  import tensorflow
  from tensorflow_io.python.ops import io_tensor_ops
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 1 to create a new LMDBIOTensor object from inherited base classes: io_tensor_ops with example: obj = LMDBIOTensor(filename, internal)