code: def pprint_thing_encoded(
      object, encoding: str = "utf-8", errors: str = "replace"
  ) -> bytes:
      value = pprint_thing(
          object
      )  # get unicode representation of object
      return value.encode(encoding, errors)
  
file_path: catboost/contrib/python/pandas/py3/pandas/io/formats/printing.py
imports: from __future__ import annotations
  import sys
  from typing import Any, Callable, Dict, Iterable, Mapping, Sequence, TypeVar, Union
  from pandas._config import get_option
  from pandas.core.dtypes.inference import is_sequence
label_desc: Use image node_id 6 for calling a global function with example usage: pprint_thing_encoded(object, encoding, errors) and returns: value