code: def fixture_prometheus_graph():
      """fixture_prometheus_graph"""
  
      offset = int(round(time.time() * 1000))
      args = "up"
  
      def func(q):
          v = tfio.experimental.IODataset.from_prometheus(
              q,
              5,
              offset=offset,
              spec={
                  "coredns": {
                      "localhost:9153": {
                          "up": tf.TensorSpec([], tf.float64),
                      },
                  },
                  "prometheus": {
                      "localhost:9090": {
                          "up": tf.TensorSpec([], tf.float64),
                      },
                  },
              },
              endpoint="http://localhost:9090",
          )
          v = v.map(
              lambda _, value: (
                  value["coredns"]["localhost:9153"]["up"],
                  value["prometheus"]["localhost:9090"]["up"],
              )
          )
          return v
  
      expected = [[1.0, 1.0] for _ in range(0, 5000, 1000)]
  
      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 10 for calling a global function with example usage: fixture_prometheus_graph() and returns: args,  func,  expected, v