code: def load_and_save(path, save):
      if save:
          for v in vgg7.get_parameters():
              nansbane(v)
          st = get_state_dict(vgg7)
          safe_save(st, path)
      else:
          st = safe_load(path)
          load_state_dict(vgg7, st)
          for v in vgg7.get_parameters():
              nansbane(v)
  
file_path: tinygrad/examples/vgg7.py
imports: import sys
  import random
  import json
  import numpy
  from pathlib import Path
  from PIL import Image
  from tinygrad.tensor import Tensor
  from tinygrad.nn.optim import SGD
  from tinygrad.nn.state import safe_save, safe_load, get_state_dict, load_state_dict
  from examples.vgg7_helpers.waifu2x import image_load, image_save, Vgg7
label_desc: Use image node_id 4 for calling a global function with example usage: load_and_save(path, save) without return types