code: def to_2d_array(var):
      shape = np.shape(var)
      if len(shape) == 2:
          x, y = shape
      else:
          x, y = 1, np.size(var)
      return np.reshape(np.asarray(var), (x, y))
  
file_path: m2cgen/m2cgen/assemblers/utils.py
imports: import numpy
  from m2cgen import ast
label_desc: Use image node_id 12 for calling a global function with example usage: to_2d_array(var) and returns: np