code: def _create_input_order(
      input_size, input_order="left-to-right", seed=None
  ):
      """Returns a degree vectors for the input."""
      if isinstance(input_order, six.string_types):
          if input_order == "left-to-right":
              return np.arange(start=1, stop=input_size + 1)
          elif input_order == "right-to-left":
              return np.arange(start=input_size, stop=0, step=-1)
          elif input_order == "random":
              ret = np.arange(start=1, stop=input_size + 1)
              if seed is None:
                  rng = np.random
              else:
                  rng = np.random.RandomState(seed)
              rng.shuffle(ret)
              return ret
      elif np.all(
          np.sort(np.array(input_order)) == np.arange(1, input_size + 1)
      ):
          return np.array(input_order)
  
      raise ValueError('Invalid input order: "{}".'.format(input_order))
  
imports: import numpy
  import six
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector
  from tensorflow_probability.python.bijectors import chain
  from tensorflow_probability.python.bijectors import scale
  from tensorflow_probability.python.bijectors import shift
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import tf_keras
  from tensorflow_probability.python.math.numeric import clip_by_value_preserve_gradient
  from tensorflow.python.util import deprecation
label_desc: Use image node_id 7 for calling a global function with example usage: _create_input_order(input_size, input_order, seed) and returns: np, np, np, ret