code: def test_to_dict_pos_args_deprecation(self):
      # GH-54229
      df = DataFrame({"a": [1, 2, 3]})
      msg = (
          r"Starting with pandas version 3.0 all arguments of to_dict except for the "
          r"argument 'orient' will be keyword-only."
      )
      with tm.assert_produces_warning(FutureWarning, match=msg):
          df.to_dict("records", {})
  
imports: from collections import OrderedDict, defaultdict
  from datetime import datetime
  import numpy
  import pytest
  import pytz
  from pandas import NA, DataFrame, Index, MultiIndex, Series, Timestamp
  import pandas._testing
label_desc: Use image node_id 23 for calling the TestDataFrameToDict obj's underlying member method code with example usage: obj.test_to_dict_pos_args_deprecation() without return types