code: def test_register_model_step_with_invalid_input():
      # without both step_args and any of the old required arguments
      with pytest.raises(ValueError) as error:
          _RegisterModelStep(
              name="MyRegisterModelStep",
              content_types=list(),
          )
      assert "Either of them should be provided" in str(error.value)
  
      # with both step_args and the old required arguments
      with pytest.raises(ValueError) as error:
          _RegisterModelStep(
              name="MyRegisterModelStep",
              step_args=dict(),
              content_types=list(),
              response_types=list(),
              inference_instances=list(),
              transform_instances=list(),
          )
      assert "Either of them should be provided" in str(error.value)
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/workflow/test_utils.py
imports: from __future__ import absolute_import
  import os
  import shutil
  import tempfile
  import pytest
  from sagemaker.estimator import Estimator
  from sagemaker.workflow._utils import _RepackModelStep, _RegisterModelStep, REPACK_SCRIPT, REPACK_SCRIPT_LAUNCHER
  from sagemaker.workflow.properties import Properties
  from tests.unit.test_utils import FakeS3, list_tar_files
  from tests.unit import DATA_DIR
  from tests.unit.sagemaker.workflow.conftest import ROLE, IMAGE_URI, BUCKET
label_desc: Use image node_id 4 for calling a global function with example usage: test_register_model_step_with_invalid_input() without return types