code: def test_init_required_positional(sagemaker_session):
      fm = FactorizationMachines(
          "myrole",
          1,
          "ml.c4.xlarge",
          3,
          "regressor",
          sagemaker_session=sagemaker_session,
      )
      assert fm.role == "myrole"
      assert fm.instance_count == 1
      assert fm.instance_type == "ml.c4.xlarge"
      assert fm.num_factors == 3
      assert fm.predictor_type == "regressor"
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch
  from sagemaker import image_uris
  from sagemaker.amazon.factorization_machines import FactorizationMachines, FactorizationMachinesPredictor
  from sagemaker.amazon.amazon_estimator import RecordSet
  from sagemaker.session_settings import SessionSettings
label_desc: Use image node_id 2 for calling a global function with example usage: test_init_required_positional(sagemaker_session) without return types