def METHOD_NAME(self, get_path_mock, get_resource_mock):
    sync_flow = self.create_sync_flow()
    sync_flow._build_context.use_base_dir = False
    sync_flow._build_context.base_dir = "base_dir"
    get_resource_mock.return_value = {"Properties": {"DefinitionUri": "test_uri"}}
    get_path_mock.return_value = Path("base_dir").joinpath("test_uri")
    result_uri = sync_flow._get_definition_file(sync_flow._api_identifier)
    get_path_mock.assert_called_with(
        {"Properties": {"DefinitionUri": "test_uri"}},
        sync_flow._api_identifier,
        False,
        "base_dir",
        sync_flow._stacks,
    )
    self.assertEqual(result_uri, Path("base_dir").joinpath("test_uri"))
    get_resource_mock.return_value = {}
    result_uri = sync_flow._get_definition_file(sync_flow._api_identifier)
    self.assertEqual(result_uri, None)