code: def bool_series() -> pd.Series:
      bool_list = [True, False, True, True, True, True] + [True] * 1000
      return pd.Series(
          bool_list * (_nb_samples // len(bool_list) + 1),
          dtype="bool",
          name="bool_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 7 for calling a global function with example usage: bool_series() and returns: pd