code: def up(db, dataset_name):
      match_d = {"name": dataset_name}
      dataset_dict = db.datasets.find_one(match_d)
  
      if "group_field" not in dataset_dict:
          dataset_dict["group_field"] = None
  
      if "group_media_types" not in dataset_dict:
          dataset_dict["group_media_types"] = {}
  
      if "default_group_slice" not in dataset_dict:
          dataset_dict["default_group_slice"] = None
  
      if "app_config" not in dataset_dict:
          dataset_dict["app_config"] = {
              "media_fields": ["filepath"],
              "grid_media_field": "filepath",
              "modal_media_field": "filepath",
              "sidebar_groups": None,
              "plugins": {},
          }
  
      if "app_sidebar_groups" in dataset_dict:
          dataset_dict["app_config"][
              "sidebar_groups"
          ] = dataset_dict.pop("app_sidebar_groups")
  
      db.datasets.replace_one(match_d, dataset_dict)
  
label_desc: Use image node_id 1 for calling a global function with example usage: up(db, dataset_name) without return types