code: def test_parquet_dataset_from_dir_failure():
      """Test the dataset creation failure when a directory is passed
      instead of a filename."""
      dir_path = os.path.join(
          os.path.dirname(os.path.abspath(__file__)), "test_parquet"
      )
      columns = {
          "pred_0": tf.TensorSpec(tf.TensorShape([]), tf.double),
          "pred_1": tf.TensorSpec(tf.TensorShape([]), tf.double),
      }
      try:
          _ = tfio.IODataset.from_parquet(dir_path, columns=columns)
      except Exception as e:
          assert (
              "passing a directory path to 'filename' is not supported. "
              in str(e)
          )
  
file_path: io/tests/test_parquet.py
imports: import os
  import collections
  import numpy
  import tensorflow
  import tensorflow_io
  import pandas
label_desc: Use image node_id 9 for calling a global function with example usage: test_parquet_dataset_from_dir_failure() without return types