code: def create_random_dataset(path, rows, dims):
      X = np.random.randn(rows, dims).astype("float32")
      y = np.random.randint(0, 2, size=(rows, 1))
      with h5py.File(path, "w") as f:
          X_dataset = f.create_dataset("data", (rows, dims), dtype="f")
          X_dataset[:] = X
          y_dataset = f.create_dataset(
              "labels", (len(X_dataset), 1), dtype="i"
          )
          y_dataset[:] = y
  
file_path: ivis/tests/integration/test_h5.py
imports: import tempfile
  import h5py
  import numpy
  import pytest
  from ivis import Ivis
label_desc: Use image node_id 2 for calling a global function with example usage: create_random_dataset(path, rows, dims) without return types