def try_parse_field(field_name, value, parser_dict):
 parser = parser_dict.get(field_name)
 if (parser is not None):
  return try_or_none(parser)(value)
 else:
  return value

def try_parse_field ( field_name , value , parser_dict ) : parser = parser_dict . get ( field_name ) if ( parser is not None ) : return try_or_none ( parser ) ( value ) else : return value
try to parse value using the appropriate function from parser_dict .