class_docstr: Implements the ServerSentEvent Protocol:
  https://www.w3.org/TR/2009/WD-eventsource-20090421/
  
  Responses must not be compressed by middleware in order to work.
  implementation based on Starlette StreamingResponse
class_docstr_tok: ["Implements","the","ServerSentEvent","Protocol",":","https",":","\/\/www.w3.org\/TR\/2009\/WD-eventsource-20090421\/","Responses","must","not","be","compressed","by","middleware","in","order","to","work",".","implementation","based","on","Starlette","StreamingResponse"]
docstr: Enable compression
  :param force: force compression
docstr_tok: ["Enable","compression",":","param","force",":","force","compression"]
code: def enable_compression(self, force: bool = False) -> None:
      """
      Enable compression
      :param force: force compression
      """
      raise NotImplementedError
  
imports: import enum
  import io
  import json
  import logging
  import re
  from datetime import datetime
  from functools import partial
  from typing import Any, AsyncIterable, Callable, Coroutine, Dict, Optional, Union
  import anyio
  from starlette.background import BackgroundTask
  from starlette.concurrency import iterate_in_threadpool
  from starlette.responses import Response
  from starlette.types import Receive, Scope, Send
label_desc: Use image node_id 2 for calling the EventSourceResponse obj's underlying member method code with example usage: obj.enable_compression(force) without return types