code: def test_copy_in_constructor():
      levels = np.array(["a", "b", "c"])
      codes = np.array([1, 1, 2, 0, 0, 1, 1])
      val = codes[0]
      mi = MultiIndex(
          levels=[levels, levels], codes=[codes, codes], copy=True
      )
      assert mi.codes[0][0] == val
      codes[0] = 15
      assert mi.codes[0][0] == val
      val = levels[0]
      levels[0] = "PANDA"
      assert mi.levels[0][0] == val
  
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 6 for calling a global function with example usage: test_copy_in_constructor() without return types