code: def add_jars(jars):
      """Add external jars to the pyspark interpreter.
  
      Set the PYSPARK_SUBMIT_ARGS properly.
  
      Parameters
      ----------
      jars: list of path to jars in string format
      """
  
      # if the parameter is a string, convert to a single element list
      if isinstance(jars, str):
          jars = [jars]
  
      _add_to_submit_args("--jars " + ",".join(jars))
  
file_path: findspark/findspark.py
imports: from glob import glob
  import os
  import sys
label_desc: Use image node_id 7 for calling a global function with example usage: add_jars(jars) without return types