code: def process_observation_seq(obs_seq, n_modalities, n_observations):
      """
      Helper function for formatting observations
  
          Observations can either be `int` (converted to one-hot)
          or `tuple` (obs for each modality), or `list` (obs for each modality)
          If list, the entries could be object arrays of one-hots, in which
          case this function returns `obs_seq` as is.
      """
      proc_obs_seq = obj_array(len(obs_seq))
      for t, obs_t in enumerate(obs_seq):
          proc_obs_seq[t] = process_observation(
              obs_t, n_modalities, n_observations
          )
      return proc_obs_seq
  
imports: import numpy
  import pandas
  import seaborn
  import matplotlib.pyplot
  import warnings
  import itertools
label_desc: Use image node_id 23 for calling a global function with example usage: process_observation_seq(obs_seq, n_modalities, n_observations) and returns: proc_obs_seq