def _name_matches(xform_name, form_names):
    if xform_name in form_names.values():
        return True
    if xform_name in [u"{} [{}]".format(v, k) for k, v in form_names.iteritems()]:
        return True
    return False
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/cleanup/management/commands/fix_forms_with_missing_xmlns.py/_name_matches/original