code: def test_from_product_readonly():
      # GH#15286 passing read-only array to from_product
      a = np.array(range(3))
      b = ["a", "b"]
      expected = MultiIndex.from_product([a, b])
  
      a.setflags(write=False)
      result = MultiIndex.from_product([a, b])
      tm.assert_index_equal(result, expected)
  
imports: from datetime import date, datetime
  import itertools
  import numpy
  import pytest
  from pandas.core.dtypes.cast import construct_1d_object_array_from_listlike
  import pandas
  from pandas import Index, MultiIndex, Series, Timestamp, date_range
  import pandas._testing
label_desc: Use image node_id 35 for calling a global function with example usage: test_from_product_readonly() without return types