code: def down(db, dataset_name):
      match_d = {"name": dataset_name}
      dataset_dict = db.datasets.find_one(match_d)
  
      sample_fields = dataset_dict.get("sample_fields", [])
  
      sample_fields = [f for f in sample_fields if f["name"] != "id"]
  
      for field in sample_fields:
          field.pop("db_field", None)
  
      dataset_dict["sample_fields"] = sample_fields
  
      frame_fields = dataset_dict.get("frame_fields", [])
  
      frame_fields = [
          f
          for f in frame_fields
          if f["name"] not in ("id", "frame_number", "_sample_id")
      ]
  
      for field in frame_fields:
          field.pop("db_field", None)
  
      dataset_dict["frame_fields"] = frame_fields
  
      db.datasets.replace_one(match_d, dataset_dict)
  
label_desc: Use image node_id 2 for calling a global function with example usage: down(db, dataset_name) without return types