<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pull(image, store_path, docker=True):
 """ pull an image """


    if docker:
        fp = "docker://{0:s}".format(image)
    else:
        fp = image
    utils.xrun("singularity", ["pull", "--force", "--name", store_path, fp])

    return 0