code: def label_mappings():
      # TODO add a segmentation test by loading rle values
      cases = [
          {
              "labelstudio": {
                  "value": {"choices": ["Airbus"]},
                  "from_name": "choice",
                  "type": "choices",
              },
              "fiftyone": fo.Classification(label="Airbus"),
          },
          {
              "labelstudio": {
                  "value": {"choices": ["Airbus", "Boeing"]},
                  "from_name": "choice",
                  "type": "choices",
              },
              "fiftyone": [
                  fo.Classification(label="Airbus"),
                  fo.Classification(label="Boeing"),
              ],
          },
          {
              "labelstudio": {
                  "image_rotation": 0,
                  "value": {
                      "x": 5.0,
                      "y": 15.0,
                      "width": 32.0,
                      "height": 39.0,
                      "rotation": 0,
                      "rectanglelabels": ["Airplane"],
                  },
                  "type": "rectanglelabels",
              },
              "fiftyone": fo.Detection(
                  label="Airplane",
                  bounding_box=[0.05, 0.15, 0.32, 0.39],
              ),
          },
          {
              "labelstudio": {
                  "value": {
                      "points": [
                          [29.0, 56.0],
                          [33.0, 80.0],
                          [43.0, 91.0],
                          [60.0, 90.0],
                          [59.0, 45.0],
                      ],
                      "polygonlabels": ["Car"],
                  },
                  "original_width": 600,
                  "original_height": 403,
                  "image_rotation": 0,
                  "id": "d3PbabEFY0",
                  "from_name": "label",
                  "to_name": "image",
                  "type": "polygonlabels",
              },
              "fiftyone": fo.Polyline(
                  label="Car",
                  points=[
                      [
                          [0.29, 0.56],
                          [0.33, 0.8],
                          [0.43, 0.91],
                          [0.6, 0.9],
                          [0.59, 0.45],
                      ],
                  ],
                  filled=True,
                  closed=True,
              ),
          },
          {
              "labelstudio": [
                  {
                      "original_width": 600,
                      "original_height": 403,
                      "image_rotation": 0,
                      "value": {
                          "x": 39.0,
                          "y": 81.0,
                          "width": 0.346,
                          "keypointlabels": ["Tail"],
                      },
                      "from_name": "label",
                      "type": "keypointlabels",
                  },
                  {
                      "original_width": 600,
                      "original_height": 403,
                      "image_rotation": 0,
                      "value": {
                          "x": 33.3,
                          "y": 77.1,
                          "width": 0.346,
                          "keypointlabels": ["Tail"],
                      },
                      "from_name": "label",
                      "type": "keypointlabels",
                  },
                  {
                      "original_width": 600,
                      "original_height": 403,
                      "image_rotation": 0,
                      "value": {
                          "x": 42.4,
                          "y": 89.4,
                          "width": 0.346,
                          "keypointlabels": ["Tail"],
                      },
                      "from_name": "label",
                      "type": "keypointlabels",
                  },
                  {
                      "original_width": 600,
                      "original_height": 403,
                      "image_rotation": 0,
                      "value": {
                          "x": 42.4,
                          "y": 74.5,
                          "width": 0.346,
                          "keypointlabels": ["Tail"],
                      },
                      "from_name": "label",
                      "type": "keypointlabels",
                  },
              ],
              "fiftyone": fol.Keypoint(
                  label="Tail",
                  points=[
                      (0.39, 0.81),
                      (0.333, 0.771),
                      (0.424, 0.894),
                      (0.424, 0.745),
                  ],
              ),
          },
          {
              "labelstudio": [
                  {
                      "original_width": 600,
                      "original_height": 403,
                      "image_rotation": 0,
                      "value": {
                          "x": 39.0,
                          "y": 81.0,
                          "width": 0.346,
                          "keypointlabels": ["LEye"],
                      },
                      "from_name": "label",
                      "type": "keypointlabels",
                  },
                  {
                      "original_width": 600,
                      "original_height": 403,
                      "image_rotation": 0,
                      "value": {
                          "x": 33.3,
                          "y": 77.1,
                          "width": 0.346,
                          "keypointlabels": ["LEye"],
                      },
                      "from_name": "label",
                      "type": "keypointlabels",
                  },
                  {
                      "original_width": 600,
                      "original_height": 403,
                      "image_rotation": 0,
                      "value": {
                          "x": 42.4,
                          "y": 89.4,
                          "width": 0.346,
                          "keypointlabels": ["REye"],
                      },
                      "from_name": "label",
                      "type": "keypointlabels",
                  },
                  {
                      "original_width": 600,
                      "original_height": 403,
                      "image_rotation": 0,
                      "value": {
                          "x": 42.4,
                          "y": 74.5,
                          "width": 0.346,
                          "keypointlabels": ["REye"],
                      },
                      "from_name": "label",
                      "type": "keypointlabels",
                  },
              ],
              "fiftyone": fol.Keypoints(
                  keypoints=[
                      fol.Keypoint(
                          label="LEye",
                          points=[
                              (0.39, 0.81),
                              (0.333, 0.771),
                          ],
                      ),
                      fol.Keypoint(
                          label="REye",
                          points=[
                              (0.424, 0.894),
                              (0.424, 0.745),
                          ],
                      ),
                  ]
              ),
          },
          {
              "labelstudio": {
                  "value": {"number": 100},
                  "from_name": "number",
                  "type": "number",
              },
              "fiftyone": fo.Regression(value=100),
          },
      ]
      return cases
  
imports: import os
  import random
  import numpy
  import pytest
  import fiftyone
  import fiftyone.zoo
  import fiftyone.utils.labelstudio
  import fiftyone.core.labels
label_desc: Use image node_id 4 for calling a global function with example usage: label_mappings() and returns: cases