code: def to_bytes(self, **kwargs):
      serializers = {
          "cfg": lambda: srsly.json_dumps(self.cfg),
      }
      return util.to_bytes(serializers, [])
  
imports: import warnings
  from typing import Any, Dict
  import srsly
  from ..None import util
  from ..errors import Warnings
  from ..language import Language
  from ..matcher import Matcher
  from ..tokens import Doc
label_desc: Use image node_id 3 for calling the DocCleaner obj's underlying member method code with example usage: obj.to_bytes() and returns: util