code: def test_cut_unordered_with_series_labels():
      # https://github.com/pandas-dev/pandas/issues/36603
      ser = Series([1, 2, 3, 4, 5])
      bins = Series([0, 2, 4, 6])
      labels = Series(["a", "b", "c"])
      result = cut(ser, bins=bins, labels=labels, ordered=False)
      expected = Series(["a", "a", "b", "b", "c"], dtype="category")
      tm.assert_series_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import Categorical, DataFrame, DatetimeIndex, Index, Interval, IntervalIndex, Series, TimedeltaIndex, Timestamp, cut, date_range, interval_range, isna, qcut, timedelta_range, to_datetime
  import pandas._testing
  from pandas.api.types import CategoricalDtype
  import pandas.core.reshape.tile
label_desc: Use image node_id 44 for calling a global function with example usage: test_cut_unordered_with_series_labels() without return types