<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_commit(profile, message, tree, parents):
 """Create a commit. Args: profile A profile generated from ``simplygithub.authentication.profile``. Such profiles tell this module (i) the ``repo`` to connect to, and (ii) the ``token`` to connect with. message The commit message to give to the commit. tree The SHA of the tree to assign to the commit. parents A list enumerating the SHAs of the new commit's parent commits. Returns: A dict with data about the commit. """

    resource = "/commits"
    payload = {"message": message, "tree": tree, "parents": parents}
    data = api.post_request(profile, resource, payload)
    return prepare(data)