<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def up(cloud_init, use_snapshots, upgrade_image, snapshot_cluster, snapshot_time):
 """ creates a new cluster """

    try:
        cloud_config = CloudConfig()
        ci = None

        if cloud_init:
            ci = CloudInit()

        cloud_controller = CloudController(cloud_config)
        cloud_controller.up(ci, use_snapshots, upgrade_image, snapshot_cluster, snapshot_time)
    except CloudComposeException as ex:
        print(ex)