code: def test_snake():
      # Single component with id 1.
      np.testing.assert_equal(
          connected_components(tf.cast(SNAKE, tf.bool)).numpy(), SNAKE
      )
  
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 3 for calling a global function with example usage: test_snake() without return types