code: def to_disk(self, path, **kwargs):
      path = util.ensure_path(path)
      serializers = {
          "cfg": lambda p: srsly.write_json(p, self.cfg),
      }
      return util.to_disk(path, 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 5 for calling the DocCleaner obj's underlying member method code with example usage: obj.to_disk(path) and returns: util