code: def test_partial_set_empty_frame_empty_consistencies(
      self, using_infer_string
  ):
      # GH#6171
      # consistency on empty frames
      df = DataFrame(columns=["x", "y"])
      df["x"] = [1, 2]
      expected = DataFrame({"x": [1, 2], "y": [np.nan, np.nan]})
      tm.assert_frame_equal(df, expected, check_dtype=False)
  
      df = DataFrame(columns=["x", "y"])
      df["x"] = ["1", "2"]
      expected = DataFrame(
          {
              "x": Series(
                  ["1", "2"],
                  dtype=object
                  if not using_infer_string
                  else "string[pyarrow_numpy]",
              ),
              "y": Series([np.nan, np.nan], dtype=object),
          }
      )
      tm.assert_frame_equal(df, expected)
  
      df = DataFrame(columns=["x", "y"])
      df.loc[0, "x"] = 1
      expected = DataFrame({"x": [1], "y": [np.nan]})
      tm.assert_frame_equal(df, expected, check_dtype=False)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, Period, Series, Timestamp, date_range, period_range
  import pandas._testing
label_desc: Use image node_id 14 for calling the TestEmptyFrameSetitemExpansion obj's underlying member method code with example usage: obj.test_partial_set_empty_frame_empty_consistencies(using_infer_string) without return types