input: 
  def mnist_digit_classifier():
      """Generate a machine learning model in Python using scikit-learn for classifying digits in the MNIST dataset.
      >>> from sklearn.datasets import fetch_openml
      >>> from sklearn.linear_model import LogisticRegression
      >>> mnist = fetch_openml('mnist_784')
      >>> X = mnist.data.reshape((mnist.data.shape[0], -1))
      >>> y = mnist.target
      >>> clf = LogisticRegression()
      >>> clf.fit(X, y)
      >>> clf.score(X, y) > 0.9
      True
      """
  
output:     from sklearn.datasets import fetch_openml
      from sklearn.linear_model import LogisticRegression
      mnist = fetch_openml('mnist_784')
      X = mnist.data.reshape((mnist.data.shape[0], -1))
      y = mnist.target
      clf = LogisticRegression()
      clf.fit(X, y)
      return clf