code: def save_layout(self, layout):
      for layout_item in layout:
          if layout_item["i"] == "game":
              continue
  
          metric = Metric.get(uuid=UUID(layout_item["i"]))
  
          if metric is not None:
              metric.set(
                  x=layout_item["x"],
                  y=layout_item["y"],
                  w=layout_item["w"],
                  h=layout_item["h"],
              )
  
      commit()
  
file_path: SerpentAI/serpent/dashboard/models/entities.py
imports: from uuid import UUID, uuid4
  from pony.orm import *
  import os
label_desc: Use image node_id 4 for calling the Dashboard obj's underlying member method code with example usage: obj.save_layout(layout) without return types