def METHOD_NAME(api_data, dynfacts, fallback):
    # The `api_data` test fixture contains some dynamic facts by default. We clear those
    # to ensure a clean base for testing the dynamic facts logic.
    del api_data["cluster"]["dynamicFacts"]
    cluster = Cluster(api_data["cluster"], api_data["tenant"])
    assert {} == cluster.dynamic_facts
    if dynfacts is not None:
        api_data["cluster"]["dynamicFacts"] = dynfacts.copy()
    cluster = Cluster(api_data["cluster"], api_data["tenant"], fallback)
    if dynfacts is not None:
        assert dynfacts == cluster.dynamic_facts
    else:
        assert fallback == cluster.dynamic_facts