code: def test_dataptr(data, entities):
      ptr = DataPtr(data, entities)
      assert (ptr.get_data() != data).nnz == 0
      assert np.array_equal(ptr.get_entity("row"), entities[0])
      assert np.array_equal(ptr.get_entity("col"), entities[1])
  
file_path: recommenders/tests/unit/recommenders/models/test_geoimc.py
imports: import collections
  import pytest
  import numpy
  from scipy.sparse import csr_matrix
label_desc: Use image node_id 1 for calling a global function with example usage: test_dataptr(data, entities) without return types