code: def np_random(
      seed: Optional[int] = None,
  ) -> Tuple[np.random.Generator, Any]:
      """Generates a random number generator from the seed and returns the Generator and seed.
  
      Args:
          seed: The seed used to create the generator
  
      Returns:
          The generator and resulting seed
  
      Raises:
          Error: Seed must be a non-negative integer or omitted
      """
      if seed is not None and not (isinstance(seed, int) and 0 <= seed):
          raise error.Error(
              f"Seed must be a non-negative integer or omitted, not {seed}"
          )
  
      seed_seq = np.random.SeedSequence(seed)
      np_seed = seed_seq.entropy
      rng = RandomNumberGenerator(np.random.PCG64(seed_seq))
      return rng, np_seed
  
label_desc: Use image node_id 1 for calling a global function with example usage: np_random(seed) and returns: rng,  np_seed