code: def test_read_file():
      """Test case for reading HDFS"""
  
      address = socket.gethostbyname(socket.gethostname())
      print(f"ADDRESS: {address}")
  
      body = b"1234567"
      tf.io.write_file(f"hdfs://{address}:9000/file.txt", body)
  
      content = tf.io.read_file(f"hdfs://{address}:9000/file.txt")
      print(f"CONTENT: {content}")
      assert content == body
  
file_path: io/tests/test_hdfs.py
imports: import os
  import sys
  import socket
  import time
  import tempfile
  import tensorflow
  import tensorflow_io
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_read_file() without return types