code: def lr_to_ms(array: np.ndarray) -> (np.ndarray, np.ndarray):
      array = np.copy(array)
      array[:, 0] += array[:, 1]
      array[:, 0] *= 0.5
      mid = np.copy(array[:, 0])
      array[:, 0] -= array[:, 1]
      side = np.copy(array[:, 0])
      return mid, side
  
imports: import numpy
  import statsmodels.api
label_desc: Use image node_id 8 for calling a global function with example usage: lr_to_ms(array) and returns: mid,  side