code: def test_parquet_dataset_from_file_pattern():
      """Test the parquet dataset creation process using a file pattern"""
      df = pd.DataFrame(
          {
              "pred_0": 0.1 * np.arange(100),
              "pred_1": -0.1 * np.arange(100),
          }
      )
      df.to_parquet("df_x.parquet")
      df.to_parquet("df_y.parquet")
      columns = {
          "pred_0": tf.TensorSpec(tf.TensorShape([]), tf.double),
          "pred_1": tf.TensorSpec(tf.TensorShape([]), tf.double),
      }
  
      def map_fn(file_location):
          return tfio.IODataset.from_parquet(
              file_location, columns=columns
          )
  
      ds = tf.data.Dataset.list_files("*.parquet").map(map_fn)
  
      for d in ds:  # loop over the files
          for item in d:  # loop over items
              print(item)
  
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 8 for calling a global function with example usage: test_parquet_dataset_from_file_pattern() and returns: tfio