code: def random_A_matrix(num_obs, num_states):
      if type(num_obs) is int:
          num_obs = [num_obs]
      if type(num_states) is int:
          num_states = [num_states]
      num_modalities = len(num_obs)
  
      A = obj_array(num_modalities)
      for modality, modality_obs in enumerate(num_obs):
          modality_shape = [modality_obs] + num_states
          modality_dist = np.random.rand(*modality_shape)
          A[modality] = norm_dist(modality_dist)
      return A
  
imports: import numpy
  import pandas
  import seaborn
  import matplotlib.pyplot
  import warnings
  import itertools
label_desc: Use image node_id 10 for calling a global function with example usage: random_A_matrix(num_obs, num_states) and returns: A