code: def test_use_preset(self):
      self.link.nms_thresh = 0
      self.link.score_thresh = 0
  
      self.link.use_preset("visualize")
      self.assertEqual(self.link.nms_thresh, 0.45)
      self.assertEqual(self.link.score_thresh, 0.5)
  
      self.link.nms_thresh = 0
      self.link.score_thresh = 0
  
      self.link.use_preset("evaluate")
      self.assertEqual(self.link.nms_thresh, 0.45)
      self.assertEqual(self.link.score_thresh, 0.005)
  
      with self.assertRaises(ValueError):
          self.link.use_preset("unknown")
  
imports: import mock
  import numpy
  import unittest
  import chainer
  from chainer.backends.cuda import to_cpu
  from chainer import testing
  from chainer.testing import attr
  from chainercv.links.model.yolo import YOLOBase
  from chainercv.utils import assert_is_detection_link
  from chainercv.utils import generate_random_bbox
label_desc: Use image node_id 2 for calling the TestYOLOBase obj's underlying member method code with example usage: obj.test_use_preset() without return types