code: def test_assign_not_modifying_array_inplace():
      df = pd.DataFrame({"a": [1, 2, 3], "b": 1.5})
      result = methods.assign(df, "a", 5)
      assert not np.shares_memory(df["a"].values, result["a"].values)
      if PANDAS_GE_140:
          assert np.shares_memory(df["b"].values, result["b"].values)
  
imports: from __future__ import annotations
  import numpy
  import pandas
  import dask.dataframe.methods
  from dask.dataframe._compat import PANDAS_GE_140
label_desc: Use image node_id 1 for calling a global function with example usage: test_assign_not_modifying_array_inplace() without return types