code: def test_check_key_name(self):
      logger = self.logger
      # Return True when key == item
      self.assertTrue(logger._check_key_name("name", "name"))
      # Return True when key.startswith(item + "/")
      self.assertTrue(logger._check_key_name("name/", "name"))
      # Return False when item.startswith(key + "/")
      self.assertFalse(logger._check_key_name("name", "name/"))
      # Return False when key != item and not key.startswith(item."/")
      self.assertFalse(logger._check_key_name("name", "x"))
  
imports: import unittest
  from unittest.mock import patch
  from ray.air.integrations.comet import CometLoggerCallback
  from collections import namedtuple
label_desc: Use image node_id 2 for calling the HelperMethodTests obj's underlying member method code with example usage: obj.test_check_key_name() without return types