from typing import Dict
from typing import Tuple
from typing import Any


def deserialize_arg(doc: Dict) -> Tuple[str, Any]:
    """Get the parameter name and argument value from a run argument.

    Parameters
    ----------
    doc: dict
        User-provided argument value for a run parameter.

    Returns
    -------
    string, any
    """
    try:
        return doc['name'], doc['value']
    except KeyError as ex:
        raise ValueError('missing element {}'.format(str(ex)))