code: def test_csv_format():
      """test_csv_format"""
      data = {
          "bool": np.asarray([e % 2 for e in range(100)], bool),
          "int64": np.asarray(range(100), np.int64),
          "double": np.asarray(range(100), np.float64),
      }
      df = pd.DataFrame(data).sort_index(axis=1)
      with tempfile.NamedTemporaryFile(delete=False, mode="w") as f:
          df.to_csv(f, index=False)
  
      df = pd.read_csv(f.name)
  
      csv = tfio.IOTensor.from_csv(f.name)
      for column in df.columns:
          assert csv(column).shape == [100]
          assert csv(column).dtype == column
          assert np.all(csv(column).to_tensor().numpy() == data[column])
  
      os.unlink(f.name)
  
file_path: io/tests/test_csv.py
imports: import os
  import tempfile
  import numpy
  import pandas
  import tensorflow_io
label_desc: Use image node_id 1 for calling a global function with example usage: test_csv_format() without return types