code: def _sanitize_parameters(*raw_parameters):
      if len(raw_parameters) == 1 and isinstance(
          raw_parameters[0], (list, tuple)
      ):
          # Do the right thing if called with an explicit parameters list as the:
          # sole arg (`_apply_parameters(generator, raw_parameters)`).
          # This is unambiguous for single-parameter generators as long as
          # their parameters returned by `init_fn` are Tensor-like values rather
          # than not lists or tuples.
          raw_parameters = raw_parameters[0]
      return raw_parameters
  
file_path: probability/tensorflow_probability/python/internal/trainable_state_util.py
imports: import collections
  import functools
  import inspect
  import re
  import types
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import samplers
  from tensorflow_probability.python.internal import structural_tuple
label_desc: Use image node_id 4 for calling a global function with example usage: _sanitize_parameters() and returns: raw_parameters