code: def get_target_column_spec(
      columns_specs: list[dict], column_name: str
  ) -> str:
      """
      Using column name returns spec of the column.
      """
      for column in columns_specs:
          if column["display_name"] == column_name:
              return extract_object_id(column)
      raise Exception(f"Unknown target column: {column_name}")
  
file_path: airflow/tests/system/providers/google/cloud/automl/example_automl_model.py
imports: from __future__ import annotations
  import os
  from copy import deepcopy
  from datetime import datetime
  from google.protobuf.struct_pb2 import Value
  from airflow.models.dag import DAG
  from airflow.providers.google.cloud.hooks.automl import CloudAutoMLHook
  from airflow.providers.google.cloud.operators.automl import AutoMLBatchPredictOperator, AutoMLCreateDatasetOperator, AutoMLDeleteDatasetOperator, AutoMLDeleteModelOperator, AutoMLDeployModelOperator, AutoMLGetModelOperator, AutoMLImportDataOperator, AutoMLPredictOperator, AutoMLTablesListColumnSpecsOperator, AutoMLTablesListTableSpecsOperator, AutoMLTablesUpdateDatasetOperator, AutoMLTrainModelOperator
  from airflow.providers.google.cloud.operators.gcs import GCSCreateBucketOperator, GCSDeleteBucketOperator, GCSSynchronizeBucketsOperator
  from airflow.utils.trigger_rule import TriggerRule
  from tests.system.utils import get_test_run
label_desc: Use image node_id 1 for calling a global function with example usage: get_target_column_spec(columns_specs, column_name) and returns: extract_object_id