<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_resized_name(image, width, height, crop, namespace):
 """ Get the name of the resized file when assumed it exists. """

    path, name = os.path.split(image.name)
    name_part = "%s/%ix%i" % (namespace, width, height)
    if crop:
        name_part += "_cropped"

    return os.path.join(path, name_part, name)