def METHOD_NAME(self) -> str:
    def declare_definition(
        type_name: str, type_definition: TypeDefinition
    ) -> List[str]:
        ret: List[str] = []
        definition_value = (
            type_definition.async_definition
            if self.async_mode
            else type_definition.sync_definition
        )
        ret.append("{} = {}".format(type_name, definition_value))
        return ret
    if not self.file_import.type_definitions:
        return ""
    declarations: List[str] = [""]
    for type_name, value in self.file_import.type_definitions.items():
        declarations.extend(declare_definition(type_name, value))
    return "\n".join(declarations)