code: def parse_cfg(cfg):
      # Return a list of blocks
      lines = cfg.decode("utf-8").split("\n")
      lines = [x for x in lines if len(x) > 0]
      lines = [x for x in lines if x[0] != "#"]
      lines = [x.rstrip().lstrip() for x in lines]
      block, blocks = {}, []
      for line in lines:
          if line[0] == "[":
              if len(block) != 0:
                  blocks.append(block)
                  block = {}
              block["type"] = line[1:-1].rstrip()
          else:
              key, value = line.split("=")
              block[key.rstrip()] = value.lstrip()
      blocks.append(block)
      return blocks
  
imports: import sys
  import io
  import time
  import math
  import cv2
  import numpy
  from PIL import Image
  from tinygrad.tensor import Tensor
  from tinygrad.nn import BatchNorm2d, Conv2d
  from tinygrad.helpers import fetch
label_desc: Use image node_id 6 for calling a global function with example usage: parse_cfg(cfg) and returns: blocks