code: def parse_params(params):
      list = []
      for key, value in params.items():
          if isinstance(value, (str, bytes)):
              list.append(
                  '{}="{}"'.format(key, value.replace('"', "'"))
              )
          else:
              list.append(f"{key}={value}")
  
      return ", ".join(list)
  
file_path: nipype/nipype/interfaces/slicer/generate_classes.py
imports: import xml.dom.minidom
  import subprocess
  import os
  from shutil import rmtree
  import keyword
label_desc: Use image node_id 7 for calling a global function with example usage: parse_params(params) and returns: str