code: def test_integration(self, weak_labels_from_guide):
      label_model = FlyingSquid(weak_labels_from_guide)
      label_model.fit()
  
      metrics = label_model.score()
      assert metrics["accuracy"] == pytest.approx(0.9282296650717703)
  
      records = label_model.predict()
      assert len(records) == 1177
  
      prediction = records[0].prediction
      spam_prediction_probability = prediction[0][1]
      ham_prediction_probability = prediction[1][1]
      assert spam_prediction_probability == pytest.approx(
          0.8236983486087645
      )
      assert ham_prediction_probability == pytest.approx(
          0.17630165139123552
      )
  
imports: import sys
  import numpy
  import pytest
  from argilla.client.models import TextClassificationRecord
  from argilla.labeling.text_classification import FlyingSquid, Snorkel, WeakLabels, WeakMultiLabels
  from argilla.labeling.text_classification.label_models import LabelModel, MajorityVoter, MissingAnnotationError, NotFittedError, TieBreakPolicy, TooFewRulesError
label_desc: Use image node_id 14 for calling the TestFlyingSquid obj's underlying member method code with example usage: obj.test_integration(weak_labels_from_guide) without return types