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