class_docstr: Test class for logging utility tests.
class_docstr_tok: ["Test","class","for","logging","utility","tests","."]
docstr: Do something that will trigger an ``sklearn`` warning.
  
  This should trigger an ``UndefinedMetricWarning``.
docstr_tok: ["Do","something","that","will","trigger","an","``","sklearn","``","warning",".","This","should","trigger","an","``","UndefinedMetricWarning","``","."]
code: def trigger_sklearn_warning(self):
      """
      Do something that will trigger an ``sklearn`` warning.
  
      This should trigger an ``UndefinedMetricWarning``.
      """
      roc_curve(
          [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 1, 0, 1, 0, 1, 0, 1, 0, 1]
      )
  
file_path: skll/tests/test_logging_utils.py
imports: import re
  import sys
  import unittest
  import warnings
  from tempfile import NamedTemporaryFile
  from six import StringIO
  from sklearn.metrics import roc_curve
  from skll.utils.logging import close_and_remove_logger_handlers, get_skll_logger, orig_showwarning
  from skll.utils.testing import unlink
label_desc: Use image node_id 4 for calling the TestLoggingUtils obj's underlying member method code with example usage: obj.trigger_sklearn_warning() without return types