code: def test_umap_inverse_transform_fails_expectedly(
      sparse_spatial_data, nn_data
  ):
      u = UMAP(n_epochs=11)
      u.fit(sparse_spatial_data[:100])
      with pytest.raises(ValueError):
          u.inverse_transform(u.embedding_[:10])
      u = UMAP(metric="dice", n_epochs=11)
      u.fit(nn_data[:100])
      with pytest.raises(ValueError):
          u.inverse_transform(u.embedding_[:10])
  
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 36 for calling a global function with example usage: test_umap_inverse_transform_fails_expectedly(sparse_spatial_data, nn_data) without return types