code: def poisson(shape, lam, dtype=tf.float32, seed=None, name=None):
      """As `tf.random.poisson`, but handling stateful/stateless `seed`s."""
      with tf.name_scope(name or "poisson"):
          seed = sanitize_seed(seed)
          lam_shape = ps.shape(lam)
          sample_shape = ps.concat([shape, lam_shape], axis=0)
          return tf.random.stateless_poisson(
              shape=sample_shape, seed=seed, lam=lam, dtype=dtype
          )
  
file_path: probability/tensorflow_probability/python/internal/samplers.py
imports: import hashlib
  import warnings
  import numpy
  import six
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import prefer_static
label_desc: Use image node_id 10 for calling a global function with example usage: poisson(shape, lam, dtype, seed, name) and returns: tf