code: def test_create(sagemaker_session):
      sagemaker_session.sagemaker_client.create_action.return_value = {
          "ActionArn": "bazz",
      }
      obj = action.Action.create(
          action_name="foo",
          source_uri="bar",
          sagemaker_session=sagemaker_session,
      )
      sagemaker_session.sagemaker_client.create_action.assert_called_with(
          ActionName="foo", Source={"SourceUri": "bar"}
      )
      assert "foo" == obj.action_name
      assert "bar" == obj.source.source_uri
      assert "bazz" == obj.action_arn
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/lineage/test_action.py
imports: from __future__ import absolute_import
  import datetime
  import unittest.mock
  from sagemaker.lineage import action, _api_types
  from sagemaker.lineage._api_types import ActionSource
label_desc: Use image node_id 1 for calling a global function with example usage: test_create(sagemaker_session) without return types