code: def dataset_shape_is_fully_defined(ds):
      output_shapes = tf.compat.v1.data.get_output_shapes(ds)
      return all(
          [
              ts.is_fully_defined()
              for ts in tf.nest.flatten(output_shapes)
          ]
      )
  
imports: from __future__ import annotations
  import collections.abc
  import functools
  import typing
  from typing import Any, Callable, Iterable, Iterator, Union
  from etils import enp
  from etils.etree import nest
  import numpy
  from tensorflow_datasets.core import logging
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils import tree_utils
  from tensorflow_datasets.core.utils import type_utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 7 for calling a global function with example usage: dataset_shape_is_fully_defined(ds) and returns: all