chunk_content:  import cached_download, hf_hub_url
  
  repo_id = "huggingface/label-files"
  filename = "ade20k-hf-doc-builder.json"
  id2label = json.load(open(cached_download(hf_hub_url(repo_id, filename, repo_type="dataset")), "r"))
  id2label = {int(k): v for k, v in id2label.items()}
  label2id = {v: k for k, v in id2label.items()}
  num_labels = len(id2label)
  
  Prepare datasets for training and evaluation
  	
  Next, load the SegFormer image processor to prepare the imag