code: def download_daily_bars(
      sourceCode, tableCode, year, csvFile, authToken=None
  ):
      """Download daily bars from Quandl for a given year.
  
      :param sourceCode: The dataset's source code.
      :type sourceCode: string.
      :param tableCode: The dataset's table code.
      :type tableCode: string.
      :param year: The year.
      :type year: int.
      :param csvFile: The path to the CSV file to write.
      :type csvFile: string.
      :param authToken: Optional. An authentication token needed if you're doing more than 50 calls per day.
      :type authToken: string.
      """
  
      bars = download_csv(
          sourceCode,
          tableCode,
          datetime.date(year, 1, 1),
          datetime.date(year, 12, 31),
          "daily",
          authToken,
      )
      f = open(csvFile, "w")
      f.write(bars)
      f.close()
  
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 2 for calling a global function with example usage: download_daily_bars(sourceCode, tableCode, year, csvFile, authToken) without return types