import codecs


def hex(b):
    """Convert the given bytes to hexadecimal string representation.

    Parameters
    ----------
    b : bytes
        The byte string to convert

    Returns
    -------
    str
        Hexadecimal string

    """
    return codecs.encode(b, "hex").decode("ascii")