<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def CreateSession( cls, artifact_filter_names=None, command_line_arguments=None, debug_mode=False, filter_file_path=None, preferred_encoding='utf-8', preferred_time_zone=None, preferred_year=None):
 """Creates a session attribute container. Args: artifact_filter_names (Optional[list[str]]):
 names of artifact definitions that are used for filtering file system and Windows Registry key paths. command_line_arguments (Optional[str]):
 the command line arguments. debug_mode (bool):
 True if debug mode was enabled. filter_file_path (Optional[str]):
 path to a file with find specifications. preferred_encoding (Optional[str]):
 preferred encoding. preferred_time_zone (Optional[str]):
 preferred time zone. preferred_year (Optional[int]):
 preferred year. Returns: Session: session attribute container. """

    session = sessions.Session()

    session.artifact_filters = artifact_filter_names
    session.command_line_arguments = command_line_arguments
    session.debug_mode = debug_mode
    session.filter_file = filter_file_path
    session.preferred_encoding = preferred_encoding
    session.preferred_time_zone = preferred_time_zone
    session.preferred_year = preferred_year

    return session