class_docstr: Image files collector for sphinx.environment.
code: def clear_doc(
      self, app: Sphinx, env: BuildEnvironment, docname: str
  ) -> None:
      env.images.purge_doc(docname)
  
imports: from __future__ import annotations
  import os
  from glob import glob
  from os import path
  from typing import TYPE_CHECKING, Any
  from docutils import nodes
  from docutils.utils import relative_path
  from sphinx import addnodes
  from sphinx.environment.collectors import EnvironmentCollector
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.i18n import get_image_filename_for_language, search_image_for_language
  from sphinx.util.images import guess_mimetype
label_desc: Use image node_id 1 for calling the ImageCollector obj's underlying member method code with example usage: obj.clear_doc(app, env, docname) without return types