code: def test_cut_pass_labels(get_labels, get_expected):
      bins = [0, 25, 50, 100]
      arr = [50, 5, 10, 15, 20, 30, 70]
      labels = ["Small", "Medium", "Large"]
  
      result = cut(arr, bins, labels=get_labels(labels))
      tm.assert_categorical_equal(result, get_expected(labels))
  
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 21 for calling a global function with example usage: test_cut_pass_labels(get_labels, get_expected) without return types