def METHOD_NAME(self) -> None:
    with self.assertLogs(_c10d_logger, level="DEBUG") as captured:
        self._dummy_sleep()
        msg_dict = json.loads(
            re.search("({.+})", captured.output[0]).group(0).replace("'", '"')
        )
        self.assertEqual(len(msg_dict), 9)
        self.assertIn("pg_name", msg_dict.keys())
        self.assertEqual("None", msg_dict["pg_name"])
        self.assertIn("func_name", msg_dict.keys())
        self.assertEqual("_dummy_sleep", msg_dict["func_name"])
        self.assertIn("args", msg_dict.keys())
        self.assertIn("backend", msg_dict.keys())
        self.assertEqual("nccl", msg_dict["backend"])
        # In this test case, group_size = world_size, since we don't have multiple processes on one node.
        self.assertIn("group_size", msg_dict.keys())
        self.assertEqual(str(self.world_size), msg_dict["group_size"])
        self.assertIn("world_size", msg_dict.keys())
        self.assertEqual(str(self.world_size), msg_dict["world_size"])
        self.assertIn("global_rank", msg_dict.keys())
        self.assertIn(str(dist.get_rank()), msg_dict["global_rank"])
        # In this test case, local_rank = global_rank, since we don't have multiple processes on one node.
        self.assertIn("local_rank", msg_dict.keys())
        self.assertIn(str(dist.get_rank()), msg_dict["local_rank"])
        self.assertIn("time_spent", msg_dict.keys())
        time_ns = re.findall(r"\d+", msg_dict["time_spent"])[0]
        self.assertEqual(5, int(float(time_ns) / pow(10, 9)))