code: def download_csv(
      sourceCode, tableCode, begin, end, frequency, authToken
  ):
      url = "http://www.quandl.com/api/v1/datasets/%s/%s.csv" % (
          sourceCode,
          tableCode,
      )
      params = {
          "trim_start": begin.strftime("%Y-%m-%d"),
          "trim_end": end.strftime("%Y-%m-%d"),
          "collapse": frequency,
      }
      if authToken is not None:
          params["auth_token"] = authToken
  
      return csvutils.download_csv(url, params)
  
file_path: pyalgotrade/pyalgotrade/tools/quandl.py
imports: import datetime
  import os
  import argparse
  import six
  from pyalgotrade import bar
  from pyalgotrade.barfeed import quandlfeed
  from pyalgotrade.utils import dt
  from pyalgotrade.utils import csvutils
  import pyalgotrade.logger
label_desc: Use image node_id 1 for calling a global function with example usage: download_csv(sourceCode, tableCode, begin, end, frequency, authToken) and returns: csvutils