code: def _check_feature_label_lengths_and_format(X, Y):
      """Checks if the length of X and Y are the same."""
      if len(X) != len(Y):
          raise ValueError(
              "Length of X ("
              + len(X)
              + ") and Y ("
              + len(Y)
              + ") do not match."
          )
  
imports: from __future__ import print_function
  import numpy
  from scipy.linalg import solve_triangular
label_desc: Use image node_id 2 for calling a global function with example usage: _check_feature_label_lengths_and_format(X, Y) without return types