code: def check_filter_param_length(cls, values):
      select_values = {
          k: v for k, v in values.items() if k != "select_federated"
      }
      max_length = max([len(x) for k, x in select_values.items()])
      for k, v in select_values.items():
          if len(v) == 1:
              v *= max_length
          assert len(v) == max_length, (
              f"Length of {k}: {v} does not match "
              f"max length {max_length} of (metrics, filter_type, threshold, take_high)."
          )
      return values
  
imports: from typing import Union, List
  import pydantic
  from ._fields import string_choice, Parameter, conint, confloat
  from ._metrics import statistic_metrics_param, legal_percentile
label_desc: Use image node_id 2 for calling the FederatedStandardFilterParam obj's underlying member method code with example usage: obj.check_filter_param_length(cls, values) and returns: values