def METHOD_NAME(examples_deployment, biosimulations_deployment, validate_simulation_results_data=True, example_names=None):
    """ Get a list of any example simulation runs that didn't succeed
    Args:
        examples_deployment (:obj:`str`): example set to test (``dev`` or ``prod``)
        biosimulations_deployment (:obj:`str`): deployment to use to check the status of each run
            (``dev``, ``prod``, or ``local``)
        validate_simulation_results_data (:obj:`bool`, optional): whether to validate
            the data of the simulation results
        example_names (:obj:`list` of :obj:`str`, optional): names of examples to check; default: check all examples
    Returns:
        :obj:`list` of :obj:`dict`: simulation runs that were checked
        :obj:`list` of :obj:`str`: ids and names of failed simulation runs
    """
    # get name of file with runs
    filename = EXAMPLE_SIMULATIONS_RUNS_FILENAME.format(examples_deployment)
    # read simulation runs
    with open(filename, 'r') as file:
        runs = json.load(file)
    if example_names is not None:
        runs = list(filter(lambda run: run['name'] in example_names, runs))
    # check the status of each run
    failures = []
    for run in runs:
        validate_endpoint = get_validate_endpoint(biosimulations_deployment, run['id'])
        response = requests.get(validate_endpoint)
        try:
            response.raise_for_status()
        except requests.exceptions.RequestException:
            try:
                error = response.json()['error'][0]['detail']
            except simplejson.errors.JSONDecodeError:
                error = 'Valiation failed'
            failures.append('<details><summary><b>{} (<a href="{}" target="biosimulations">{}</a>)</b></summary><br/>\n{}\n</details>'.format(
                run['name'], get_run_url(biosimulations_deployment, run['id']), run['id'], error,
            ))
    # return list of failed runs
    return runs, failures