code: def test_cut_read_only(array_1_writeable, array_2_writeable):
      # issue 18773
      array_1 = np.arange(0, 100, 10)
      array_1.flags.writeable = array_1_writeable
  
      array_2 = np.arange(0, 100, 10)
      array_2.flags.writeable = array_2_writeable
  
      hundred_elements = np.arange(100)
      tm.assert_categorical_equal(
          cut(hundred_elements, array_1), cut(hundred_elements, array_2)
      )
  
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 29 for calling a global function with example usage: test_cut_read_only(array_1_writeable, array_2_writeable) without return types