docs: def _get_repr(obj, pretty=False, indent=1):
          """
          Get string representation of an object
  
          :param obj: object
          :type obj: object
          :param pretty: use pretty formatting
          :type pretty: bool
          :param indent: indentation for pretty formatting
          :type indent: int
          :return: string representation
          :rtype: str
          """
          if pretty:
              repr_value = pformat(obj, indent)
          else:
              repr_value = repr(obj)
          if sys.version_info[0] == 2:
              # Try to convert Unicode string to human-readable form
              try:
                  repr_value = repr_value.decode('raw_unicode_escape')
              except UnicodeError:
                  repr_value = repr_value.decode('utf-8', 'replace')
          return repr_value