code: def add_row(X: modALinput, row: modALinput):
      """
      Returns X' =
  
      [X
  
      row]"""
      if isinstance(X, np.ndarray):
          return np.vstack((X, row))
      elif isinstance(X, list):
          return np.vstack((X, row)).tolist()
  
      # data_vstack readily supports stacking of matrix as first argument
      # and row as second for the other data types
      return data_vstack([X, row])
  
file_path: modAL/modAL/utils/data.py
imports: from typing import List, Sequence, Union
  import numpy
  import pandas
  import scipy.sparse
label_desc: Use image node_id 3 for calling a global function with example usage: add_row(X, row) and returns: data_vstack, np, np