code: def test_to_records_with_inf_record(self):
      # GH 48526
      expected = """   NaN  inf         record
  0  inf    b    [0, inf, b]
  1  NaN  NaN  [1, nan, nan]
  2    e    f      [2, e, f]"""
      msg = "use_inf_as_na option is deprecated"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          with option_context("use_inf_as_na", False):
              df = DataFrame(
                  [[np.inf, "b"], [np.nan, np.nan], ["e", "f"]],
                  columns=[np.nan, np.inf],
              )
              df["record"] = df[[np.nan, np.inf]].to_records()
              result = repr(df)
      assert result == expected
  
imports: from datetime import datetime, timedelta
  from io import StringIO
  import numpy
  import pytest
  from pandas._config import using_pyarrow_string_dtype
  from pandas import NA, Categorical, CategoricalIndex, DataFrame, IntervalIndex, MultiIndex, NaT, PeriodIndex, Series, Timestamp, date_range, option_context, period_range
  import pandas._testing
label_desc: Use image node_id 39 for calling the TestDataFrameRepr obj's underlying member method code with example usage: obj.test_to_records_with_inf_record() without return types