def METHOD_NAME(sample_inputs_fixture: SampleInputs):
    external_library = Path(__file__).parent / "data"
    # Demonstrate a passing case
    farm_data = deepcopy(SampleInputs().farm)
    farm_data["turbine_library_path"] = external_library
    farm_data["turbine_type"] = ["nrel_5MW_custom"] * N_TURBINES
    farm = Farm.from_dict(farm_data)
    assert farm.turbine_library_path == external_library
    # Demonstrate a file not existing in the user library, but exists in the internal library, so
    # the loading is successful
    farm_data["turbine_library_path"] = external_library
    farm_data["turbine_type"] = ["iea_10MW"] * N_TURBINES
    farm = Farm.from_dict(farm_data)
    assert farm.turbine_definitions[0]["turbine_type"] == "iea_10MW"
    # Demonstrate a failing case with an incorrect library location
    farm_data["turbine_library_path"] = external_library / "turbine_library_path"
    with pytest.raises(FileExistsError):
        Farm.from_dict(farm_data)
    # Demonstrate a failing case where there is a duplicated turbine between the internal
    # and external turbine libraries
    farm_data = deepcopy(SampleInputs().farm)
    farm_data["turbine_library_path"] = external_library
    farm_data["turbine_type"] = ["nrel_5MW"] * N_TURBINES
    with pytest.raises(ValueError):
        Farm.from_dict(farm_data)
    # Demonstrate a failing case where there a turbine does not exist in either
    farm_data = deepcopy(SampleInputs().farm)
    farm_data["turbine_library_path"] = external_library
    farm_data["turbine_type"] = ["FAKE_TURBINE"] * N_TURBINES
    with pytest.raises(FileNotFoundError):
        Farm.from_dict(farm_data)