code: def test_choice_retun_dtype(self):
      # GH 9867, now long since the NumPy default changed.
      c = np.random.choice(10, p=[0.1] * 10, size=2)
      assert c.dtype == np.dtype(np.long)
      c = np.random.choice(10, p=[0.1] * 10, replace=False, size=2)
      assert c.dtype == np.dtype(np.long)
      c = np.random.choice(10, size=2)
      assert c.dtype == np.dtype(np.long)
      c = np.random.choice(10, replace=False, size=2)
      assert c.dtype == np.dtype(np.long)
  
imports: import sys
  import pytest
  from numpy.testing import assert_, assert_array_equal, assert_raises
  import numpy
  from numpy import random
label_desc: Use image node_id 14 for calling the TestRegression obj's underlying member method code with example usage: obj.test_choice_retun_dtype() without return types