code: def append_dict_to_df(df, row_dict):
      """Appends a row to the dataframe 'df' and returns the new
      dataframe.
  
      Args:
          df (pd.DataFrame) data frame
  
          row_dict (dict): row data
  
      Returns:
          pd.DataFrame
      """
      return pd.concat(
          [df, pd.DataFrame([row_dict])], ignore_index=True
      )
  
imports: from functools import partial
  import re
  from collections import Counter
  from typing import List, Union
  import warnings
  import numpy
  import pandas
  from pandas.api.types import is_numeric_dtype, is_categorical_dtype
  from dtreeviz.trees import ShadowDecTree
  from sklearn.metrics import make_scorer
  from sklearn.base import clone
  from sklearn.pipeline import Pipeline
  from sklearn.model_selection import KFold, StratifiedKFold
  from joblib import Parallel, delayed
label_desc: Use image node_id 1 for calling a global function with example usage: append_dict_to_df(df, row_dict) and returns: pd