code: def test_create_transformation_code_artifact_when_no_author_or_name():
      transformation_code_input = TransformationCode(
          s3_uri=TRANSFORMATION_CODE_INPUT_1.s3_uri
      )
      with patch.object(
          Artifact,
          "create",
          return_value=TRANSFORMATION_CODE_ARTIFACT_1,
      ) as artifact_create_method:
          result = S3LineageEntityHandler.create_transformation_code_artifact(
              transformation_code=transformation_code_input,
              pipeline_last_update_time=LAST_UPDATE_TIME,
              sagemaker_session=SAGEMAKER_SESSION_MOCK,
          )
  
      assert result == TRANSFORMATION_CODE_ARTIFACT_1
  
      artifact_create_method.assert_called_once_with(
          source_uri=TRANSFORMATION_CODE_INPUT_1.s3_uri,
          source_types=[
              dict(SourceIdType="Custom", Value=LAST_UPDATE_TIME)
          ],
          artifact_type="TransformationCode",
          artifact_name=f"sm-fs-fe-transformation-code-{LAST_UPDATE_TIME}",
          properties=dict(
              state="Active",
              inclusive_start_date=LAST_UPDATE_TIME,
          ),
          sagemaker_session=SAGEMAKER_SESSION_MOCK,
      )
  
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 6 for calling a global function with example usage: test_create_transformation_code_artifact_when_no_author_or_name() without return types