code: def test_mixed_type_join_with_suffix(self):
      # GH #916
      df = DataFrame(
          np.random.default_rng(2).standard_normal((20, 6)),
          columns=["a", "b", "c", "d", "e", "f"],
      )
      df.insert(0, "id", 0)
      df.insert(5, "dt", "foo")
  
      grouped = df.groupby("id")
      msg = re.escape("agg function failed [how->mean,dtype->object]")
      with pytest.raises(TypeError, match=msg):
          grouped.mean()
      mn = grouped.mean(numeric_only=True)
      cn = grouped.count()
  
      # it works!
      mn.join(cn, rsuffix="_right")
  
imports: import re
  import numpy
  import pytest
  import pandas.util._test_decorators
  import pandas
  from pandas import Categorical, DataFrame, Index, MultiIndex, Series, Timestamp, bdate_range, concat, merge, option_context
  import pandas._testing
label_desc: Use image node_id 33 for calling the TestJoin obj's underlying member method code with example usage: obj.test_mixed_type_join_with_suffix() without return types