code: def test_encode_bmp():
      """Test case for encode_bmp."""
      width = 51
      height = 26
      channels = 3
      bmp_file = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          "test_image",
          "lena.bmp",
      )
      with open(bmp_file, "rb") as f:
          bmp_contents = f.read()
      image_v = tf.image.decode_bmp(bmp_contents)
      assert image_v.shape == [height, width, channels]
      bmp_encoded = tfio.image.encode_bmp(image_v)
      image_e = tf.image.decode_bmp(bmp_encoded)
      assert np.all(image_v.numpy() == image_e.numpy())
  
imports: import os
  import numpy
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 6 for calling a global function with example usage: test_encode_bmp() without return types