code: def test_list_to_label_freq_not_as_period():
      anomaly_list = {
          "type1": [
              Timestamp("1970-01-02 00:00:00"),
              (
                  Timestamp("1970-01-05 00:00:00"),
                  Timestamp("1970-01-06 00:00:00"),
              ),
              (
                  Timestamp("1970-01-08 00:00:00"),
                  Timestamp("1970-01-09 00:00:00"),
              ),
          ],
          "type2": [
              Timestamp("1970-01-01 00:00:00"),
              (
                  Timestamp("1970-01-08 00:00:00"),
                  Timestamp("1970-01-10 00:00:00"),
              ),
          ],
          "type3": [],
          "type4": [
              (
                  Timestamp("1970-01-01 00:00:00"),
                  Timestamp("1970-01-10 00:00:00"),
              )
          ],
          "type5": [
              (
                  Timestamp("1969-12-12 00:00:05"),
                  Timestamp("1969-12-25 00:00:05"),
              ),
              (
                  Timestamp("1969-12-27 00:00:05"),
                  Timestamp("1970-01-01 00:00:05"),
              ),
              (
                  Timestamp("1970-01-02 00:00:05"),
                  Timestamp("1970-01-04 00:00:05"),
              ),
              (
                  Timestamp("1970-01-07 00:00:05"),
                  Timestamp("1970-01-15 00:00:05"),
              ),
          ],
      }
  
      labels_true = pd.DataFrame(
          np.array(
              [
                  [0, 1, 0, 0, 1, 1, 0, 1, 1, 0],
                  [1, 0, 0, 0, 0, 0, 0, 1, 1, 1],
                  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                  [1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
                  [1, 0, 1, 1, 0, 0, 0, 1, 1, 1],
              ]
          ).T,
          columns=["type{}".format(i + 1) for i in range(5)],
          index=pd.date_range(start=0, periods=10, freq="1d"),
      ).astype(bool)
  
      for i in range(5):
          labels = to_labels(
              anomaly_list["type{}".format(i + 1)],
              pd.date_range(start=0, periods=10, freq="1d"),
              freq_as_period=False,
          )
  
          pd.testing.assert_series_equal(
              labels,
              labels_true["type{}".format(i + 1)],
              check_names=False,
          )
  
      labels = to_labels(
          anomaly_list,
          pd.date_range(start=0, periods=10, freq="1d"),
          freq_as_period=False,
      )
  
      pd.testing.assert_frame_equal(
          labels.sort_index(axis=1), labels_true.sort_index(axis=1)
      )
  
file_path: adtk/tests/test_label_list_convert.py
imports: import numpy
  import pandas
  from pandas import Timestamp
  from adtk.data import to_events, to_labels
label_desc: Use image node_id 6 for calling a global function with example usage: test_list_to_label_freq_not_as_period() without return types