code: def csv_to_dict(file_name, file_location):
      
      file = __os.path.join(file_location, file_name)
      try:
          csv_read = open(file, "r")
      except Exception as e:
          LOGGER.critical('Function csv_to_dict Error {error} ignoring any errors'.format(error=e))
          print('Error {error} ignoring any errors'.format(error=e))
          csv_read = open(file, "r", errors='ignore')
      data_row = __csv.DictReader(csv_read, dialect="excel")
      dict_key = 1
      temp_dict = dict()
      for row in data_row:
          temp_dict[dict_key] = row
          dict_key += 1
      csv_read.close()
      return temp_dict
docs: Function to import a csv as a dictionary
      Args:
          file_name: The name of the csv file
          file_location: The location of the file, derive from the os module
  
      Returns: returns a dictionary