code: def test_create_transformation_code_artifact_when_no_code_provided():
      with patch.object(
          Artifact,
          "create",
          return_value=TRANSFORMATION_CODE_ARTIFACT_1,
      ) as artifact_create_method:
          result = S3LineageEntityHandler.create_transformation_code_artifact(
              transformation_code=None,
              pipeline_last_update_time=LAST_UPDATE_TIME,
              sagemaker_session=SAGEMAKER_SESSION_MOCK,
          )
  
      assert result is None
  
      artifact_create_method.assert_not_called()
  
imports: from __future__ import absolute_import
  import copy
  from mock import patch
  from test_constants import ARTIFACT_RESULT, ARTIFACT_SUMMARY, PIPELINE_SCHEDULE, PIPELINE_SCHEDULE_2, PIPELINE_TRIGGER, PIPELINE_TRIGGER_2, PIPELINE_TRIGGER_ARTIFACT, PIPELINE_TRIGGER_ARTIFACT_SUMMARY, SCHEDULE_ARTIFACT_RESULT, TRANSFORMATION_CODE_ARTIFACT_1, TRANSFORMATION_CODE_INPUT_1, LAST_UPDATE_TIME, MockDataSource
  from test_pipeline_lineage_entity_handler import SAGEMAKER_SESSION_MOCK
  from sagemaker.feature_store.feature_processor import CSVDataSource
  from sagemaker.feature_store.feature_processor.lineage._s3_lineage_entity_handler import S3LineageEntityHandler
  from sagemaker.feature_store.feature_processor.lineage._transformation_code import TransformationCode
  from sagemaker.lineage.artifact import Artifact
label_desc: Use image node_id 7 for calling a global function with example usage: test_create_transformation_code_artifact_when_no_code_provided() without return types