code: def test_hparams_bool(self):
      hp = {"bool_var": True}
      mt = {"accuracy": 0.1}
      compare_proto(summary.hparams(hp, mt), self)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from tensorboardX import summary
  from .expect_reader import compare_proto, write_proto
  import numpy
  import pytest
  import unittest
  import torch
label_desc: Use image node_id 24 for calling the SummaryTest obj's underlying member method code with example usage: obj.test_hparams_bool() without return types