def wcGeneralSettingLookup(gSettings, sid):
  """
  Lookup an ID in WooCommerce general settings.
  """
  assert gSettings is not None
  assert isinstance(sid, str)
  for settings in gSettings:
    if "id" in settings and settings["id"] == sid:
      return settings
  return None