code: def test_37477():
      # fixed by GH#45121
      orig = DataFrame({"A": [1, 2, 3], "B": [3, 4, 5]})
      expected = DataFrame({"A": [1, 2, 3], "B": [3, 1.2, 5]})
  
      df = orig.copy()
      with tm.assert_produces_warning(
          FutureWarning, match="Setting an item of incompatible dtype"
      ):
          df.at[1, "B"] = 1.2
      tm.assert_frame_equal(df, expected)
  
      df = orig.copy()
      with tm.assert_produces_warning(
          FutureWarning, match="Setting an item of incompatible dtype"
      ):
          df.loc[1, "B"] = 1.2
      tm.assert_frame_equal(df, expected)
  
      df = orig.copy()
      with tm.assert_produces_warning(
          FutureWarning, match="Setting an item of incompatible dtype"
      ):
          df.iat[1, 1] = 1.2
      tm.assert_frame_equal(df, expected)
  
      df = orig.copy()
      with tm.assert_produces_warning(
          FutureWarning, match="Setting an item of incompatible dtype"
      ):
          df.iloc[1, 1] = 1.2
      tm.assert_frame_equal(df, expected)
  
file_path: pandas/pandas/tests/frame/indexing/test_coercion.py
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, MultiIndex, NaT, Series, Timestamp, date_range
  import pandas._testing
label_desc: Use image node_id 1 for calling a global function with example usage: test_37477() without return types