code: def _assert_labels_equal(converted, expected):
      assert converted._cls == expected._cls
      if hasattr(expected, "label"):
          assert converted.label == expected.label
  
      if expected._cls == "Classification":
          assert True
      elif expected._cls == "Detection":
          np.testing.assert_allclose(
              converted.bounding_box,
              expected.bounding_box,
              atol=0.01,
              rtol=0.01,
          )
      elif expected._cls == "Polyline":
          np.testing.assert_allclose(
              converted.points, expected.points, atol=0.01, rtol=0.01
          )
          assert converted.closed == expected.closed
          assert converted.filled == expected.filled
      elif expected._cls == "Keypoint":
          np.testing.assert_allclose(
              converted.points, expected.points, atol=0.01, rtol=0.01
          )
      elif expected._cls == "Keypoints":
          for pair in zip(converted.keypoints, expected.keypoints):
              _assert_labels_equal(*pair)
      elif expected._cls == "Regression":
          assert expected.value == converted.value
      else:
          raise NotImplementedError()
  
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 12 for calling a global function with example usage: _assert_labels_equal(converted, expected) without return types