code: def test_hdf_globbing():
      pytest.importorskip("tables")
      df = pd.DataFrame(
          {"x": ["a", "b", "c", "d"], "y": [1, 2, 3, 4]},
          index=[1.0, 2.0, 3.0, 4.0],
      )
  
      with tmpdir() as tdir:
          df.to_hdf(
              os.path.join(tdir, "one.h5"),
              key="/foo/data",
              format="table",
          )
          df.to_hdf(
              os.path.join(tdir, "two.h5"),
              key="/bar/data",
              format="table",
          )
          df.to_hdf(
              os.path.join(tdir, "two.h5"),
              key="/foo/data",
              format="table",
          )
  
          with dask.config.set(scheduler="sync"):
              res = dd.read_hdf(
                  os.path.join(tdir, "one.h5"), "/*/data", chunksize=2
              )
              assert res.npartitions == 2
              tm.assert_frame_equal(res.compute(), df)
  
              res = dd.read_hdf(
                  os.path.join(tdir, "one.h5"),
                  "/*/data",
                  chunksize=2,
                  start=1,
                  stop=3,
              )
              expected = pd.read_hdf(
                  os.path.join(tdir, "one.h5"),
                  "/foo/data",
                  start=1,
                  stop=3,
              )
              tm.assert_frame_equal(res.compute(), expected)
  
              res = dd.read_hdf(
                  os.path.join(tdir, "two.h5"), "/*/data", chunksize=2
              )
              assert res.npartitions == 2 + 2
              tm.assert_frame_equal(res.compute(), pd.concat([df] * 2))
  
              res = dd.read_hdf(
                  os.path.join(tdir, "*.h5"), "/foo/data", chunksize=2
              )
              assert res.npartitions == 2 + 2
              tm.assert_frame_equal(res.compute(), pd.concat([df] * 2))
  
              res = dd.read_hdf(
                  os.path.join(tdir, "*.h5"), "/*/data", chunksize=2
              )
              assert res.npartitions == 2 + 2 + 2
              tm.assert_frame_equal(res.compute(), pd.concat([df] * 3))
  
imports: from __future__ import annotations
  import os
  import pathlib
  from time import sleep
  import numpy
  import pandas
  import pytest
  from packaging.version import Version
  import dask
  import dask.dataframe
  from dask._compatibility import PY_VERSION
  from dask.dataframe._compat import tm
  from dask.dataframe.optimize import optimize_dataframe_getitem
  from dask.dataframe.utils import assert_eq
  from dask.layers import DataFrameIOLayer
  from dask.utils import dependency_depth, tmpdir, tmpfile
label_desc: Use image node_id 16 for calling a global function with example usage: test_hdf_globbing() without return types