code: def create_screenshots(quiet=False):
      
      if os.environ.get("READTHEDOCS") == "True":
          path = "../doc/screenshots"
      else:
          path = os.path.join(
              os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
              "doc/screenshots",
          )
  
      print("Creating screenshots...")
      samples = get_samples()
      for name, data in sorted(samples.items()):
          process(name, path, data)
docs: create screenshots for all core modules.
      The screenshots directory will have all .png files deleted before new shots
      are created.