code: def cat_series() -> pd.Series:
      cats_list = ["a", "a", "a", "a"] * 2000
      for i in np.random.randint(0, len(cats_list), 3):
          cats_list[i] = "b"
      for i in np.random.randint(0, len(cats_list), 3):
          cats_list[i] = "c"
      return pd.Series(
          cats_list * (_nb_samples // len(cats_list) + 1),
          dtype="category",
          name="cat_series",
      )[:_nb_samples]
  
imports: import os
  from typing import Union
  import numpy
  import pandas
  import plotly.graph_objects
  import pytest
  from plotly.subplots import make_subplots
  from plotly_resampler import LTTB, EveryNthPoint, FigureResampler, unregister_plotly_resampler
label_desc: Use image node_id 6 for calling a global function with example usage: cat_series() and returns: pd