code: def test_use_inf_as_na(values, expected, dtype):
      # https://github.com/pandas-dev/pandas/issues/33655
      values = pd.array(values, dtype=dtype)
      msg = "use_inf_as_na option is deprecated"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          with pd.option_context("mode.use_inf_as_na", True):
              result = values.isna()
              tm.assert_numpy_array_equal(result, expected)
  
              result = pd.Series(values).isna()
              expected = pd.Series(expected)
              tm.assert_series_equal(result, expected)
  
              result = pd.DataFrame(values).isna()
              expected = pd.DataFrame(expected)
              tm.assert_frame_equal(result, expected)
  
imports: import operator
  import numpy
  import pytest
  from pandas.compat.pyarrow import pa_version_under12p0
  from pandas.core.dtypes.common import is_dtype_equal
  import pandas
  import pandas._testing
  from pandas.core.arrays.string_arrow import ArrowStringArray, ArrowStringArrayNumpySemantics
label_desc: Use image node_id 36 for calling a global function with example usage: test_use_inf_as_na(values, expected, dtype) without return types