def METHOD_NAME(self, async_mode: bool) -> FileImport:
    file_import = FileImport()
    relative_path = ".." if async_mode else "."
    for operation in self.operations:
        file_import.merge(
            operation.METHOD_NAME(async_mode, relative_path=relative_path)
        )
    if (
        self.code_model.model_types or self.code_model.enums
    ) and self.code_model.options["models_mode"] == "msrest":
        file_import.add_submodule_import(
            relative_path, "models", ImportType.LOCAL, alias="_models"
        )
    return file_import