@classmethod
def get_from_string(cls, code_string):
    """
        Get a Computer object with given identifier string in the format
        label@machinename. See the note below for details on the string
        detection algorithm.

        .. note:: the (leftmost) '@' symbol is always used to split code
            and computername. Therefore do not use
            '@' in the code name if you want to use this function
            ('@' in the computer name are instead valid).

        :param code_string: the code string identifying the code to load

        :raise aiida.common.NotExistent: if no code identified by the given string is found
        :raise aiida.common.MultipleObjectsError: if the string cannot identify uniquely
            a code
        :raise aiida.common.InputValidationError: if code_string is not of string type

        """
    from aiida.common.exceptions import NotExistent, MultipleObjectsError, InputValidationError
    try:
        label, sep, machinename = code_string.partition('@')
    except AttributeError as exception:
        raise InputValidationError(
            'the provided code_string is not of valid string type')
    try:
        return cls.get_code_helper(label, machinename)
    except NotExistent:
        raise NotExistent('{} could not be resolved to a valid code label'.
            format(code_string))
    except MultipleObjectsError:
        raise MultipleObjectsError('{} could not be uniquely resolved'.
            format(code_string))
