code: def test_sample_numpy():
      distribs_numpy = [
          Geometric("G", 0.5),
          Poisson("P", 1),
          Zeta("Z", 2),
      ]
      size = 3
      numpy = import_module("numpy")
      if not numpy:
          skip("Numpy is not installed. Abort tests for _sample_numpy.")
      else:
          for X in distribs_numpy:
              samps = sample(X, size=size, library="numpy")
              for sam in samps:
                  assert sam in X.pspace.domain.set
          raises(
              NotImplementedError,
              lambda: sample(Skellam("S", 1, 1), library="numpy"),
          )
      raises(
          NotImplementedError,
          lambda: Skellam("S", 1, 1).pspace.distribution.sample(
              library="tensorflow"
          ),
      )
  
file_path: sympy/sympy/stats/sampling/tests/test_sample_discrete_rv.py
imports: from sympy.core.singleton import S
  from sympy.core.symbol import Symbol
  from sympy.external import import_module
  from sympy.stats import Geometric, Poisson, Zeta, sample, Skellam, DiscreteRV, Logarithmic, NegativeBinomial, YuleSimon
  from sympy.testing.pytest import skip, raises, slow
label_desc: Use image node_id 1 for calling a global function with example usage: test_sample_numpy() without return types