code: def test_independent_entropy():
      dist_univ = Bernoulli(0.5)
      dist_multi = Bernoulli(torch.Tensor([0.5, 0.5])).to_event(1)
      assert_equal(dist_multi.entropy(), 2 * dist_univ.entropy())
  
file_path: pyro/tests/distributions/test_reshape.py
imports: import pytest
  import torch
  from pyro.distributions.torch import Bernoulli
  from tests.common import assert_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_independent_entropy() without return types