code: def sparse_spatial_data(spatial_data, binary_data):
      sp_sparse_data = sparse.csr_matrix(
          spatial_data * binary_data, dtype=np.float32
      )
      sp_sparse_data.sort_indices()
      return sp_sparse_data
  
file_path: pynndescent/pynndescent/tests/conftest.py
imports: import os
  import pytest
  import numpy
  from scipy import sparse
label_desc: Use image node_id 4 for calling a global function with example usage: sparse_spatial_data(spatial_data, binary_data) and returns: sp_sparse_data