def _assert_all_tensors_have_shape(row_tensors):
    """Asserts that all elements in row_tensors list/tuple have static shape."""
    for column in row_tensors:
        assert column.get_shape().dims is not None
Asserts that all elements in row_tensors list/tuple have static shape.
petastorm/tests/test_tf_utils.py