def METHOD_NAME(mock_api_client, mock_load_to_dbfs):
    options = DeltaLoadOptions.get_default_delta_options()
    options.load_secrets = False
    options.if_exists = "replace"
    options.load_mode = DatabricksLoadMode.AUTOLOADER
    with tempfile.NamedTemporaryFile(suffix=".py") as tfile:
        _create_load_file_pyspark_file(
            api_client=mock_api_client,
            databricks_options=options,
            dbfs_file_path=None,
            delta_table=Table(),
            input_file=File(path="foo.csv"),
            output_file=tfile,
        )
        output_file_path = mock_load_to_dbfs.mock_calls[0].args[0]
        assert "cloudFiles.allowOverwrites" in output_file_path.read_text()