def METHOD_NAME(self):
    d = {"test": "test"}
    result = cmds._get_dict_key_handle(d, "test1", not_exists_okay=True)
    self.assertEqual(result, (d, "test1"))
    result = cmds._get_dict_key_handle(d, "test1.test2", not_exists_okay=True)
    self.assertEqual(result, ({}, "test2"))