code: def fixture_sql():
      """fixture_sql"""
  
      args = "select id, i32, i64, f32, f64 from test_table;"
  
      def func(q):
          dataset = tfio.experimental.IODataset.from_sql(
              q,
              endpoint=(
                  "postgresql://postgres:postgres@localhost?port=5432&dbname=test_db"
              ),
          )
          dataset = dataset.map(
              lambda v: (
                  v["id"],
                  v["i32"],
                  v["i64"],
                  v["f32"],
                  v["f64"],
              )
          )
          return dataset
  
      expected = [
          (
              np.int64(i),
              np.int32(i + 1000),
              np.int64(i + 2000),
              np.float32(i + 3000),
              np.float64(i + 4000),
          )
          for i in range(10)
      ]
  
      return args, func, expected
  
imports: import os
  import sys
  import time
  import shutil
  import tempfile
  import numpy
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 30 for calling a global function with example usage: fixture_sql() and returns: args,  func,  expected, dataset