code: def _process_example(example, selection):
      example = example.copy()
      example["metadata"] = json.loads(example["metadata"])
      example["labels"] = example["metadata"].pop("labels")
      for band in example.pop("bands") or []:
          example[band] = _load_tif(example[band])
      if selection == "rgb":
          _create_rgb_image(example)
      return example["filename"], example
  
file_path: datasets/tensorflow_datasets/datasets/bigearthnet/bigearthnet_dataset_builder.py
imports: from __future__ import annotations
  import io
  import json
  import os
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling a global function with example usage: _process_example(example, selection) and returns: example,  example