code: def test_repr_binary_type(self):
      letters = string.ascii_letters
      try:
          raw = bytes(
              letters, encoding=cf.get_option("display.encoding")
          )
      except TypeError:
          raw = bytes(letters)
      b = str(raw.decode("utf-8"))
      res = printing.pprint_thing(b, quote_strings=True)
      assert res == repr(b)
      res = printing.pprint_thing(b, quote_strings=False)
      assert res == b
  
file_path: pandas/pandas/tests/io/formats/test_printing.py
imports: import string
  import pandas._config.config
  from pandas.io.formats import printing
label_desc: Use image node_id 1 for calling the TestPPrintThing obj's underlying member method code with example usage: obj.test_repr_binary_type() without return types