code: def _check_colors(colors, n_series):
      """Verify color list is correct length and contains only colors."""
      from matplotlib.colors import is_color_like
  
      if n_series == len(colors) and all(
          [is_color_like(c) for c in colors]
      ):
          return True
      warn(
          "Color list must be same length as `series` and contain only matplotlib colors"
      )
      return False
  
file_path: sktime/sktime/utils/plotting.py
imports: import math
  from warnings import simplefilter, warn
  import numpy
  import pandas
  from sktime.datatypes import convert_to
  from sktime.utils.validation._dependencies import _check_soft_dependencies
  from sktime.utils.validation.forecasting import check_interval_df, check_y
  from sktime.utils.validation.series import check_consistent_index_type
label_desc: Use image node_id 5 for calling a global function with example usage: _check_colors(colors, n_series) and returns: False, True