code: def test_support_dims(dim, probs):
      probs = modify_params_using_dims(probs, dim)
      support = dist.Categorical(probs).enumerate_support()
      assert_equal(
          support.size(),
          torch.Size((probs.size(-1),) + probs.size()[:-1]),
      )
  
imports: from unittest import TestCase
  import numpy
  import pytest
  import scipy.stats
  import torch
  import pyro.distributions
  from tests.common import assert_equal
label_desc: Use image node_id 5 for calling a global function with example usage: test_support_dims(dim, probs) without return types