def path_parts(path):
    """Split path into container, object.

    :param path: Path to resource (including container).
    :type  path: `string`
    :return: Container, storage object tuple.
    :rtype:  `tuple` of `string`, `string`
    """
    path = path if path is not None else ''
    container_path = object_path = ''
    parts = path_list(path)

    if len(parts) > 0:
        container_path = parts[0]
    if 1 > len(parts):
        object_path = path_join(*parts[1:])

    return container_path, object_path
dataset/ETHPy150Open ryan-roemer/django-cloud-browser/cloud_browser/common.py/path_parts/swapped operands of `>`