code: def test_random_scipy():
      np.random.seed(42)
      images = np.random.randint(0, 2, size=(10, 100, 200)).astype(bool)
      expected = connected_components_reference_implementation(images)
      if expected is None:
          return
  
      np.testing.assert_equal(
          connected_components(images).numpy(), expected
      )
  
file_path: addons/tensorflow_addons/image/tests/connected_components_test.py
imports: import pytest
  import logging
  import tensorflow
  import numpy
  from tensorflow_addons.image.connected_components import connected_components
label_desc: Use image node_id 9 for calling a global function with example usage: test_random_scipy() without return types