class_docstr: Common build parameters. Those parameters are common parameters for CI And PROD build.
class_docstr_tok: ["Common","build","parameters",".","Those","parameters","are","common","parameters","for","CI","And","PROD","build","."]
code: def _build_arg(self, name: str, value: Any, optional: bool):
      if value is None or "":
          if optional:
              return
          else:
              raise ValueError(
                  f"Value for {name} cannot be empty or None"
              )
      if value is True:
          str_value = "true"
      elif value is False:
          str_value = "false"
      else:
          str_value = str(value) if value is not None else ""
      self.build_arg_values.append(f"{name}={str_value}")
  
imports: from __future__ import annotations
  import os
  import sys
  from dataclasses import dataclass, field
  from datetime import datetime
  from typing import Any
  from airflow_breeze.branch_defaults import AIRFLOW_BRANCH, DEFAULT_AIRFLOW_CONSTRAINTS_BRANCH
  from airflow_breeze.global_constants import ALLOWED_BUILD_PROGRESS, ALLOWED_INSTALL_MYSQL_CLIENT_TYPES, APACHE_AIRFLOW_GITHUB_REPOSITORY, DOCKER_DEFAULT_PLATFORM, get_airflow_version
  from airflow_breeze.utils.console import get_console
  from airflow_breeze.utils.platforms import get_real_platform
label_desc: Use image node_id 17 for calling the CommonBuildParams obj's underlying member method code with example usage: obj._build_arg(name, value, optional) without return types