docstr: Tests that ``np.random.default_rng`` passes through a Generator when its passed as input.
docstr_tok: ["Tests","that","``","np.random.default_rng","``","passes","through","a","Generator","when","its","passed","as","input","."]
code: def test_generator_input(self):
      """Tests that ``np.random.default_rng`` passes through a Generator when its passed as input."""
  
      rng1 = random.default_rng()
      rng2 = random.default_rng(rng1)
  
      assert rng1 == rng2
  
file_path: pennylane/tests/numpy/test_numpy_random.py
imports: import pytest
  from pennylane import numpy
  from pennylane.numpy import random
label_desc: Use image node_id 3 for calling the Test_default_rng obj's underlying member method code with example usage: obj.test_generator_input() without return types