def _raw_input_contains_national_prefix(raw_input, national_prefix, region_code):
 nnn = normalize_digits_only(raw_input)
 if nnn.startswith(national_prefix):
  try:
   return is_valid_number(parse(nnn[len(national_prefix):], region_code))
  except NumberParseException:
   return False
 return False

def _raw_input_contains_national_prefix ( raw_input , national_prefix , region_code ) : nnn = normalize_digits_only ( raw_input ) if nnn . startswith ( national_prefix ) : try : return is_valid_number ( parse ( nnn [ len ( national_prefix ) : ] , region_code ) ) except NumberParseException : return False return False
check if raw_input .