code: def test_prediction():
      prediction_str = "hello"
      conf = 0.8
      geom = ((0, 0), (1, 1))
      prediction = elements.Prediction(prediction_str, conf, geom)
  
      # Attribute checks
      assert prediction.value == prediction_str
      assert prediction.confidence == conf
      assert prediction.geometry == geom
  
      # Render
      assert prediction.render() == prediction_str
  
      # Export
      assert prediction.export() == {
          "value": prediction_str,
          "confidence": conf,
          "geometry": geom,
      }
  
      # Repr
      assert (
          prediction.__repr__()
          == f"Prediction(value='hello', confidence={conf:.2}, bounding_box={geom})"
      )
  
      # Class method
      state_dict = {
          "value": "there",
          "confidence": 0.1,
          "geometry": ((0, 0), (0.5, 0.5)),
      }
      prediction = elements.Prediction.from_dict(state_dict)
      assert prediction.export() == state_dict
  
imports: from xml.etree.ElementTree import ElementTree
  import numpy
  import pytest
  from doctr.file_utils import CLASS_NAME
  from doctr.io import elements
label_desc: Use image node_id 12 for calling a global function with example usage: test_prediction() without return types