def _to_report(name):
    """
    Ensure that ``name`` is a valid report.
    """
    if _REPORTS in name:
        return name
    raise UsageError(
        "Unrecognized report {}. {}".format(name, _to_report.coerceDoc))
dataset/ETHPy150Open ClusterHQ/flocker/admin/flaky.py/_to_report/swapped operands of `in`