code: def test_ones():
      np.testing.assert_equal(
          connected_components(tf.ones((100, 20, 50), tf.bool)),
          np.tile(np.arange(100)[:, None, None] + 1, [1, 20, 50]),
      )
  
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 7 for calling a global function with example usage: test_ones() without return types