@staticmethod
def fromhex(obj: str) ->bytes:
    """Static method to create a bytes object from a string.

        Parameters
        ----------
        obj : str
            String object to be converted to bytes.

        Returns
        -------
        bytes
            The string object as bytes.
        """
    return bytes.fromhex(obj)
