code: def modify_manifest(
      semantic_manifest: PydanticSemanticManifest,
      transform_rule: SemanticManifestTransformRule[
          PydanticSemanticManifest
      ],
  ) -> PydanticSemanticManifest:
      """Following the given transform, returns a modified copy of the given manifest.
  
      This should only be used in limited cases as the tests can become hard to read / reason about.
      """
      transformer = PydanticSemanticManifestTransformer()
      transformed_manifest = transformer.transform(
          semantic_manifest, ((transform_rule,),)
      )
  
      return transformed_manifest
  
imports: from __future__ import annotations
  from dbt_semantic_interfaces.implementations.semantic_manifest import PydanticSemanticManifest
  from dbt_semantic_interfaces.transformations.semantic_manifest_transformer import PydanticSemanticManifestTransformer
  from dbt_semantic_interfaces.transformations.transform_rule import SemanticManifestTransformRule
label_desc: Use image node_id 1 for calling a global function with example usage: modify_manifest(semantic_manifest, transform_rule) and returns: transformed_manifest