def bytes_to_human_readable_repr(b: bytes) ->str:
    "Converts bytes into some human-readable representation. Unprintable\n    bytes such as the nul byte are escaped. For example:\n\n        >>> b = bytes([102, 111, 111, 10, 0])\n        >>> s = bytes_to_human_readable_repr(b)\n        >>> print(s)\n        foo\n\x00\n        >>> print(repr(s))\n        'foo\\n\\x00'\n    "
    return repr(b)[2:-1]
