code: def train(self, X_train, Y_train, X_test, Y_test):
          
  
          while True:
              print(1)
              time.sleep(1)
              if random.randint(0, 9) >= 5:
                  break
docs: Train and validate the LR on a train and test dataset
  
          Args:
              X_train (np.array): Training data
              Y_train (np.array): Training labels
              X_test (np.array): Test data
              Y_test (np.array): Test labels