code: def _check_shares_memory(xp, sp, x, y):
      if sp.issparse(x) and sp.issparse(y):
          assert not xp.shares_memory(x.indptr, y.indptr)
          assert not xp.shares_memory(x.indices, y.indices)
          assert not xp.shares_memory(x.data, y.data)
  
imports: import functools
  import itertools
  import numpy
  import pytest
  import cupy
  import cupyx
  from cupy import testing
  from cupy.cuda import runtime
  from cupyx.scipy import sparse
label_desc: Use image node_id 2 for calling a global function with example usage: _check_shares_memory(xp, sp, x, y) without return types