code: def test_umap_fit_data_and_targets_compliant():
      # x and y are required to be the same length
      u = UMAP()
      x = np.random.uniform(0, 1, (256, 10))
      y = np.random.randint(10, size=(257,))
      with pytest.raises(ValueError):
          u.fit(x, y)
  
      u = UMAP()
      x = np.random.uniform(0, 1, (256, 10))
      y = np.random.randint(10, size=(255,))
      with pytest.raises(ValueError):
          u.fit(x, y)
  
      u = UMAP()
      x = np.random.uniform(0, 1, (256, 10))
      with pytest.raises(ValueError):
          u.fit(x, [])
  
imports: import warnings
  import numpy
  from sklearn.metrics import pairwise_distances
  import pytest
  import numba
  from umap import UMAP
  import umap.validation
label_desc: Use image node_id 34 for calling a global function with example usage: test_umap_fit_data_and_targets_compliant() without return types