code: def test_parameter_with_default():
      param = ParameterFloat(name="MyFloat", default_value=1.2)
      assert param.to_request() == {
          "Name": "MyFloat",
          "Type": "Float",
          "DefaultValue": 1.2,
      }
      assert param.expr == {"Get": "Parameters.MyFloat"}
      assert param.parameter_type.python_type == float
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/workflow/test_parameters.py
imports: from __future__ import absolute_import
  import pytest
  from sagemaker.workflow.parameters import ParameterBoolean, ParameterFloat, ParameterInteger, ParameterString
label_desc: Use image node_id 2 for calling a global function with example usage: test_parameter_with_default() without return types