code: def test_logger(self):
      logging.basicConfig()
      for name in [None, "some_random_name"]:
          if name is not None:
              c_f.set_logger_name(name)
              self.assertTrue(c_f.LOGGER_NAME == name)
          for level in range(0, 60, 10):
              logging.getLogger(c_f.LOGGER_NAME).setLevel(level)
              self.assertTrue(c_f.LOGGER.level == level)
              self.assertTrue(
                  logging.getLogger().level == logging.WARNING
              )
  
file_path: pytorch-metric-learning/tests/utils/test_common_functions.py
imports: import logging
  import unittest
  import numpy
  import torch
  from sklearn.preprocessing import StandardScaler
  from pytorch_metric_learning.losses import TripletMarginLoss
  from pytorch_metric_learning.utils import common_functions
  from ..None import WITH_COLLECT_STATS
label_desc: Use image node_id 4 for calling the TestCommonFunctions obj's underlying member method code with example usage: obj.test_logger() without return types