code: def on_save_checkpoint(self, checkpoint):
      # remove guidance from checkpoint.
      # We can still laod the model without guidance checkpoints because the module is not initalized
      # at __init__ time.
      keys_to_remove = [
          key
          for key in checkpoint["state_dict"].keys()
          if key.startswith("guidance.")
      ]
      for key in keys_to_remove:
          del checkpoint["state_dict"][key]
  
file_path: NeMo/nemo/collections/multimodal/models/nerf/txt2nerf_base.py
imports: from nemo.collections.multimodal.models.nerf.base import NerfModelBase
label_desc: Use image node_id 8 for calling the Txt2NerfBase obj's underlying member method code with example usage: obj.on_save_checkpoint(checkpoint) without return types