code: def categorical(
      logits, num_samples, dtype=None, seed=None, name=None
  ):
      """As `tf.random.categorical`, but handling stateful/stateless `seed`s."""
      with tf.name_scope(name or "categorical"):
          seed = sanitize_seed(seed)
          return tf.random.stateless_categorical(
              logits=logits,
              num_samples=num_samples,
              seed=seed,
              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 7 for calling a global function with example usage: categorical(logits, num_samples, dtype, seed, name) and returns: tf