code: def test_masked_mixed_types(dtype1, dtype2, exp_col1, exp_col2):
      # GH#37506
      data = [1.0, np.nan]
      df = DataFrame(
          {
              "col1": pd.array(data, dtype=dtype1),
              "col2": pd.array(data, dtype=dtype2),
          }
      )
      result = df.groupby([1, 1]).agg("all", skipna=False)
  
      expected = DataFrame(
          {"col1": exp_col1, "col2": exp_col2}, index=np.array([1])
      )
      tm.assert_frame_equal(result, expected)
  
imports: import builtins
  import datetime
  from string import ascii_lowercase
  import numpy
  import pytest
  from pandas._libs.tslibs import iNaT
  import pandas
  from pandas import DataFrame, MultiIndex, Series, Timestamp, date_range, isna
  import pandas._testing
  from pandas.util import _test_decorators
label_desc: Use image node_id 6 for calling a global function with example usage: test_masked_mixed_types(dtype1, dtype2, exp_col1, exp_col2) without return types