def _structuredSparseDataset(self, structure, shape, dtype):
    dense_to_sparse = self._make_dense_to_sparse_fn((len(shape) == 0))
    if (structure is None):
        return dataset_ops.Dataset.from_tensors(dense_to_sparse(array_ops.zeros(shape, dtype=dtype)))
    else:
        return dataset_ops.Dataset.zip(tuple([self._structuredSparseDataset(substructure, shape, dtype) for substructure in structure]))
def _structuredSparseDataset(self, structure, shape, dtype):
    dense_to_sparse = self._make_dense_to_sparse_fn((len(shape) == 0))
    if (structure is None):
        return dataset_ops.Dataset.from_tensors(dense_to_sparse(array_ops.zeros(shape, dtype=dtype)))
    else:
        return dataset_ops.Dataset.zip(tuple([self._structuredSparseDataset(substructure, shape, dtype) for substructure in structure]))