code: def test_bernoulli_deterministic():
      """distribution test"""
      logits = torch.from_numpy(np.random.randn(5, 7, 11))
  
      dist = BernoulliProbabilityDistribution(
          logits=logits, action_space=spaces.MultiBinary(5)
      )
      assert np.array_equal(
          dist.deterministic_sample().numpy(), (logits > 0).numpy()
      )
  
file_path: maze/maze/test/distributions/test_bernoulli.py
imports: import numpy
  import torch
  from gym import spaces
  from maze.distributions.bernoulli import BernoulliProbabilityDistribution
label_desc: Use image node_id 2 for calling a global function with example usage: test_bernoulli_deterministic() without return types