code: def test_choice(self, use_numpy):
      kwds = dict(size=3, replace=False, p=[0.1, 0, 0.3, 0.6, 0])
      with control_stream(use_numpy):
          tnp.random.seed(12345)
          x = tnp.random.choice(5, **kwds)
          tnp.random.seed(12345)
          x_1 = tnp.random.choice(tnp.arange(5), **kwds)
          assert_equal(x, x_1)
  
imports: from contextlib import contextmanager
  from functools import partial
  import numpy
  import pytest
  import torch._dynamo.config
  import torch._numpy
  from torch._numpy.testing import assert_equal
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, subtest, TestCase
label_desc: Use image node_id 1 for calling the TestChoice obj's underlying member method code with example usage: obj.test_choice(use_numpy) without return types