code: def test_categorical_exact_large():
      numpy.random.seed(0)
      X = numpy.random.randint(3, size=(50, 10))
  
      structure = _categorical_exact(X)
      assert_tuple_equal(
          structure,
          ((1, 2), (), (), (), (0, 1, 2), (), (), (), (0, 1, 2, 4), ()),
      )
  
      structure = _categorical_exact(X, max_parents=1)
      assert_tuple_equal(
          structure, ((), (), (), (), (), (), (), (2,), (), ())
      )
  
      structure = _categorical_exact(X, max_parents=2)
      assert_tuple_equal(
          structure, ((), (), (), (), (), (), (), (0, 1), (), ())
      )
  
      structure = _categorical_exact(X, max_parents=3)
      assert_tuple_equal(
          structure, ((1, 2), (), (), (), (0, 1, 2), (), (), (), (), ())
      )
  
      structure = _categorical_exact(X, max_parents=4)
      assert_tuple_equal(
          structure,
          ((1, 2), (), (), (), (0, 1, 2), (), (), (), (0, 1, 2, 4), ()),
      )
  
imports: import numpy
  import torch
  import pytest
  from pomegranate.bayesian_network import BayesianNetwork
  from pomegranate.bayesian_network import _from_structure
  from pomegranate.bayesian_network import _learn_structure
  from pomegranate.bayesian_network import _categorical_exact
  from pomegranate.bayesian_network import _categorical_chow_liu
  from pomegranate.distributions import Categorical
  from pomegranate.distributions import ConditionalCategorical
  from nose.tools import assert_raises
  from numpy.testing import assert_array_almost_equal
label_desc: Use image node_id 13 for calling a global function with example usage: test_categorical_exact_large() without return types