from typing import Optional
from typing import Dict
from typing import Any
from typing import List


def _build_dummy_product(
    properties_to_be_updated: Optional[Dict[str, Any]] = None,
    properties_to_be_removed: Optional[List[str]] = None) -> Dict[str, Any]:
  """Builds a dummy product data.

  Args:
    properties_to_be_updated: The properties of a product and their values to be
      updated in a request body.
    properties_to_be_removed: The properties of a product that should be
      removed.

  Returns:
    A dummy product data.
  """
  product = {
      'color': '',
      'title': '',
      'description': '',
      'googleProductCategory': 'Apparel & Accessories',
  }

  if properties_to_be_updated:
    for key, value in properties_to_be_updated.items():
      product[key] = value

  if properties_to_be_removed:
    for key in properties_to_be_removed:
      if key in product:
        del product[key]

  return product