code: def test_mocking_coco_captions():
      ds = tfds.load("coco_captions", split="train")
      assert ds.element_spec["captions"]["text"] == tf.TensorSpec(
          shape=(None,), dtype=tf.string
      )
      for ex in ds.take(2):
          assert ex["captions"]["text"].dtype == tf.string
          ex["captions"]["text"].shape.assert_is_compatible_with(
              (None,)
          )
  
imports: import functools
  import pickle
  import numpy
  import pytest
  import tensorflow
  import tensorflow_datasets
label_desc: Use image node_id 8 for calling a global function with example usage: test_mocking_coco_captions() without return types