code: def test_union_with_na_when_constructing_dataframe():
      # GH43222
      series1 = Series(
          (1,),
          index=MultiIndex.from_arrays(
              [
                  Series([None], dtype="string"),
                  Series([None], dtype="string"),
              ]
          ),
      )
      series2 = Series(
          (10, 20),
          index=MultiIndex.from_tuples(((None, None), ("a", "b"))),
      )
      result = DataFrame([series1, series2])
      expected = DataFrame(
          {(np.nan, np.nan): [1.0, 10.0], ("a", "b"): [np.nan, 20.0]}
      )
      tm.assert_frame_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import CategoricalIndex, DataFrame, Index, IntervalIndex, MultiIndex, Series
  import pandas._testing
  from pandas.api.types import is_float_dtype, is_unsigned_integer_dtype
label_desc: Use image node_id 45 for calling a global function with example usage: test_union_with_na_when_constructing_dataframe() without return types