code: def binary_check(classes):
      
      num_classes = len(classes)
      is_binary = False
      if num_classes == 2:
          is_binary = True
      return is_binary
docs: Check if the problem is a binary classification.
  
      :param classes:  all classes name
      :type classes : list
      :return: is_binary as bool