def quantumespresso_magnetic_code(aiida_local_code_factory):
    """Get a quantumespresso_magnetic code.
    """
    quantumespresso_magnetic_code = aiida_local_code_factory(
        executable='diff', entry_point='quantumespresso_magnetic')
    return quantumespresso_magnetic_code