code: def _deserialize_auth_config(
      conn_config: presto_config_pb2.PrestoConnConfig,
  ) -> prestodb.auth.Authentication:
      """Extracts from conn config the deserialized Presto Authentication class.
  
      Args:
        conn_config: Protobuf-encoded connection config for Presto client.
  
      Returns:
        A prestodb.auth.Authentication instance initialized with user-supplied
        parameters.
  
      Raises:
        RuntimeError: if authentication type is not currently supported.
      """
      if conn_config.HasField("basic_auth"):
          return prestodb.auth.BasicAuthentication(
              conn_config.basic_auth.username,
              conn_config.basic_auth.password,
          )
          # TODO(b/140266796): Support KerberosAuth.
      else:
          raise RuntimeError("Authentication type not supported.")
  
imports: import datetime
  from typing import Any, Dict, Iterable, Tuple
  import apache_beam
  import prestodb
  import tensorflow
  from tfx.components.example_gen import base_example_gen_executor
  from tfx.examples.custom_components.presto_example_gen.proto import presto_config_pb2
  from tfx.proto import example_gen_pb2
  from tfx.utils import proto_utils
label_desc: Use image node_id 2 for calling a global function with example usage: _deserialize_auth_config(conn_config) and returns: prestodb