def METHOD_NAME(self):
    """Test the functionality of load_code."""
    from aiida.orm import InstalledCode
    label = 'compy'
    code = InstalledCode(label=label, computer=self.computer, filepath_executable='/x.x').store()
    # Load through full label
    loaded_code = load_code(code.full_label)
    assert loaded_code.uuid == code.uuid
    # Load through label
    loaded_code = load_code(code.label)
    assert loaded_code.uuid == code.uuid
    # Load through uuid
    loaded_code = load_code(code.uuid)
    assert loaded_code.uuid == code.uuid
    # Load through pk
    loaded_code = load_code(code.pk)
    assert loaded_code.uuid == code.uuid
    # Load through full label explicitly
    loaded_code = load_code(label=code.full_label)
    assert loaded_code.uuid == code.uuid
    # Load through label explicitly
    loaded_code = load_code(label=code.label)
    assert loaded_code.uuid == code.uuid
    # Load through uuid explicitly
    loaded_code = load_code(uuid=code.uuid)
    assert loaded_code.uuid == code.uuid
    # Load through pk explicitly
    loaded_code = load_code(pk=code.pk)
    assert loaded_code.uuid == code.uuid
    # Load through partial uuid without a dash
    loaded_code = load_code(uuid=code.uuid[:8])
    assert loaded_code.uuid == code.uuid
    # Load through partial uuid including a dash
    loaded_code = load_code(uuid=code.uuid[:10])
    assert loaded_code.uuid == code.uuid
    with pytest.raises(NotExistent):
        load_code('non-existent-uuid')