code: def check_array(X, y=None, X_name="X", y_name="targets"):
      if not isinstance(X, (list, np.ndarray)):
          raise ValueError("%s must be a list or NumPy array" % X_name)
      if y is not None and not isinstance(y, (list, np.ndarray)):
          raise ValueError("%s must be a list or NumPy array" % y_name)
      return
  
imports: from .imports import *
  from subprocess import Popen
label_desc: Use image node_id 34 for calling a global function with example usage: check_array(X, y, X_name, y_name) without return types