input: from typing import List, Any
  
  def train_binary_classifier(data: List[List[float]], labels: List[int]) -> Any:
      """ Trains a binary classification model using logistic regression on the given data.
      Returns the trained model.
      >>> data = [[0.3, 0.2, 0.6], [0.3, 0.1, 0.4], [0.2, 0.3, 0.4], [0.7, 0.4, 0.2], [0.5, 0.2, 0.1]]
      >>> labels = [1, 0, 0, 1, 0]
      >>> model = train_binary_classifier(data, labels)
      >>> model.predict([[0.3, 0.2, 0.6]])
      array([1])
      """
      from sklearn import linear_model
      model = linear_model.LogisticRegression()
      model.fit(data, labels)
      return model
output:     from sklearn import linear_model
      model = linear_model.LogisticRegression()
      model.fit(data, labels)
      return model