code: def test_parse_active_learning_scores(self):
      score_value_tuple = (
          np.random.normal(0, 1, size=(999,)).astype(np.float32),
          np.random.normal(0, 1, size=(999,)).astype(np.float64),
          [12.0] * 999,
      )
      api_client = ApiClient()
      self._scores_api = ScoresApi(api_client)
      for i, score_values in enumerate(score_value_tuple):
          with self.subTest(i=i, msg=str(type(score_values))):
              body = ActiveLearningScoreCreateRequest(
                  score_type=SamplingMethod.CORESET,
                  scores=list(score_values),
              )
              if isinstance(score_values[0], float):
                  with self.assertRaises(ApiException):
                      self._scores_api.create_or_update_active_learning_score_by_tag_id(
                          body,
                          dataset_id="dataset_id_xyz",
                          tag_id="tag_id_xyz",
                      )
              else:
                  with self.assertRaises(AttributeError):
                      self._scores_api.create_or_update_active_learning_score_by_tag_id(
                          body,
                          dataset_id="dataset_id_xyz",
                          tag_id="tag_id_xyz",
                      )
  
imports: import unittest
  import numpy
  from lightly.openapi_generated.swagger_client import ActiveLearningScoreCreateRequest, ApiClient, SamplingMethod, ScoresApi
  from lightly.openapi_generated.swagger_client.rest import ApiException
label_desc: Use image node_id 1 for calling the TestRestParser obj's underlying member method code with example usage: obj.test_parse_active_learning_scores() without return types