code: def test_scalars_prediction_type():
      n = 3
      model = Workspace(
          loss_function="logistic",
          oaa=n,
          probabilities=True,
          quiet=True,
      )
      model.learn("1 | a b c")
      assert (
          model.get_prediction_type()
          == vowpalwabbit.PredictionType.SCALARS
      )
      prediction = model.predict(" | a b c")
      assert isinstance(prediction, list)
      assert len(prediction) == n
      del model
  
imports: import os
  from pathlib import Path
  import vowpalwabbit
  from vowpalwabbit import Workspace
  import pytest
  import warnings
  import filecmp
label_desc: Use image node_id 4 for calling a global function with example usage: test_scalars_prediction_type() without return types