def contains_location(configuration: dict) ->bool:
    """Check if location is specified in the configuration

    Parameters
    ----------
    configuration
        A model configuration

    Returns
    -------
    bool
        True if a location is specified else False
    """
    return 'input_data' in configuration and 'location' in configuration[
        'input_data'] and configuration['input_data']['location']
