def _is_valid_region_code(region_code):
 if (region_code is None):
  return False
 return (region_code in SUPPORTED_REGIONS)

def _is_valid_region_code ( region_code ) : if ( region_code is None ) : return False return ( region_code in SUPPORTED_REGIONS )
helper function to check region code is not unknown or none .