code: def save(self, p):
      with open(p, "w") as f:
          yaml.dump(
              dict(self.cfg),
              f,
              default_flow_style=False,
              sort_keys=False,
          )
  
imports: import json
  import pathlib
  import time
  import os
  import glob
  import cv2
  import yaml
  from typing import Mapping
  import matplotlib.pyplot
  import numpy
  from argparse import ArgumentParser, RawDescriptionHelpFormatter
label_desc: Use image node_id 5 for calling the Config obj's underlying member method code with example usage: obj.save(p) without return types