code: def test_json_get_expressions_with_invalid_step_name():
      with pytest.raises(ValueError) as err:
          JsonGet(
              step_name="",
              property_file="my-property-file",
              json_path="my-json-path",
          ).expr
  
      assert "Please give a valid step name as a string" in str(
          err.value
      )
  
      with pytest.raises(ValueError) as err:
          JsonGet(
              step_name=ParameterString(name="MyString"),
              property_file="my-property-file",
              json_path="my-json-path",
          ).expr
  
      assert "Please give a valid step name as a string" in str(
          err.value
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/workflow/test_functions.py
imports: from __future__ import absolute_import
  import pytest
  from sagemaker.workflow.execution_variables import ExecutionVariables
  from sagemaker.workflow.functions import Join, JsonGet
  from sagemaker.workflow.parameters import ParameterFloat, ParameterInteger, ParameterString
  from sagemaker.workflow.properties import Properties, PropertyFile
label_desc: Use image node_id 9 for calling a global function with example usage: test_json_get_expressions_with_invalid_step_name() without return types