def METHOD_NAME(
    aes_key_size: int, hkdf_hash_type: common_pb2.HashType,
    derived_key_size: int, mac_hash_type: common_pb2.HashType, tag_size: int,
    ciphertext_segment_size: int) -> tink_pb2.KeyTemplate:
  """Creates an AES CTR HMAC Streaming KeyTemplate, and fills in its values."""
  key_format = aes_ctr_hmac_streaming_pb2.AesCtrHmacStreamingKeyFormat()
  key_format.key_size = aes_key_size
  key_format.params.ciphertext_segment_size = ciphertext_segment_size
  key_format.params.derived_key_size = derived_key_size
  key_format.params.hkdf_hash_type = hkdf_hash_type
  key_format.params.hmac_params.hash = mac_hash_type
  key_format.params.hmac_params.tag_size = tag_size
  key_template = tink_pb2.KeyTemplate(
      value=key_format.SerializeToString(),
      type_url=_AES_CTR_HMAC_STREAMING_KEY_TYPE_URL,
      output_prefix_type=tink_pb2.RAW,
  )
  return key_template