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