def get_timesheet_collection_for_context(ctx, entries_file=None):
if not entries_file:<EOL><INDENT>entries_file = ctx.obj['<STR_LIT>'].get_entries_file_path(False)<EOL><DEDENT>parser = TimesheetParser(<EOL>date_format=ctx.obj['<STR_LIT>']['<STR_LIT>'],<EOL>add_date_to_bottom=ctx.obj['<STR_LIT>'].get_add_to_bottom(),<EOL>flags_repr=ctx.obj['<STR_LIT>'].get_flags(),<EOL>)<EOL>return TimesheetCollection.load(entries_file, ctx.obj['<STR_LIT>']['<STR_LIT>'], parser)<EOL>
Return a :class:`~taxi.timesheet.TimesheetCollection` object with the current timesheet(s). Since this depends on
the settings (to get the entries files path, the number of previous files, etc) this uses the settings object from
the current command context. If `entries_file` is set, this forces the path of the file to be used.