code: def _raise_error_if_shape_has_none_or_zero(shape: List[int]):
      for dim in shape:
          if dim is None or dim == 0:
              raise ValueError(
                  f"Dimension in shape cannot be None or 0 but found {shape}."
              )
  
file_path: io/tensorflow_io/python/experimental/atds/features.py
imports: import collections
  from typing import List
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: _raise_error_if_shape_has_none_or_zero(shape) without return types