code: def test_df_encoding():
      # Check that DataFrame recognizes optional encoding.
      # https://github.com/pandas-dev/pandas/issues/41404
      # https://github.com/pandas-dev/pandas/pull/42049
      obj = DataFrame({"x": np.arange(3), "y": list("a+c")})
  
      a = hash_pandas_object(obj, encoding="utf8")
      b = hash_pandas_object(obj, encoding="utf7")
  
      # Note that the "+" is encoded as "+-" in utf-7.
      assert a[0] == b[0]
      assert a[1] != b[1]
      assert a[2] == b[2]
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series, period_range, timedelta_range
  import pandas._testing
  from pandas.core.util.hashing import hash_tuples
  from pandas.util import hash_array, hash_pandas_object
label_desc: Use image node_id 23 for calling a global function with example usage: test_df_encoding() without return types