code: def _parse_shapes(shapes, label_id):
      for shape in shapes:
          for attr in shape["attributes"]:
              if attr["value"] == label_id:
                  return shape
  
imports: from bson import ObjectId
  from collections import defaultdict
  import numpy
  import os
  import unittest
  import eta.core.utils
  import fiftyone
  import fiftyone.utils.cvat
  import fiftyone.zoo
  from fiftyone.core.expressions import ViewField
label_desc: Use image node_id 2 for calling a global function with example usage: _parse_shapes(shapes, label_id) and returns: shape