code: def test_ndim():
      X = np.array([[1]])
      A = interface.aslinearoperator(X)
      assert_equal(A.ndim, 2)
  
imports: from functools import partial
  from itertools import product
  import operator
  from pytest import raises, warns
  from numpy.testing import assert_, assert_equal
  import numpy
  import scipy.sparse
  import scipy.sparse.linalg._interface
  from scipy.sparse._sputils import matrix
label_desc: Use image node_id 10 for calling a global function with example usage: test_ndim() without return types