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 division
  from argparse import Namespace
  from itertools import product
  import sys
  import numpy
  from ..distributions.model import Model
  from ..distributions import continuous
  from ..distributions import discrete
  from ..utils.general_utils import stable_cholesky, draw_gaussian_samples, project_symmetric_to_psd_cone, solve_lower_triangular, solve_upper_triangular
  from ..utils.oper_utils import direct_ft_maximise, pdoo_maximise, random_maximise, random_sample_cts_dscr
  from ..utils.option_handler import get_option_specs, load_options
  from ..utils.reporters import get_reporter
label_desc: Use image node_id 1 for calling a global function with example usage: _check_feature_label_lengths_and_format(X, Y) without return types