code: def append_params_to_cmdline(cmd, params):
      if isinstance(params, dict):
          for param in params.items():
              key = "{}".format(param[0])
              value = "{}".format(param[1])
              cmd.append(key)
              cmd.append(value)
      else:
          for param in params:
              cmd.append(param)
  
imports: import collections
  import csv
  import json
  import os
  import random
  import shutil
  import sys
  from pandas import read_csv, DataFrame
  from copy import deepcopy
  import numpy
  from catboost.utils import read_cd
label_desc: Use image node_id 14 for calling a global function with example usage: append_params_to_cmdline(cmd, params) without return types