def is_formatter_valid(formatter_name):
 try:
  formatter_class = select_formatter_class(formatter_name)
  return issubclass(formatter_class, Formatter)
 except (LookupError, ImportError, ValueError):
  return False

def is_formatter_valid ( formatter_name ) : try : formatter_class = select_formatter_class ( formatter_name ) return issubclass ( formatter_class , Formatter ) except ( LookupError , ImportError , ValueError ) : return False
checks if the formatter is known or loadable .