def METHOD_NAME(path, prefix):
    """Remove prefix from path.
    This attempts to remove the specified prefix from the specified path. The
    prefix may contain the globs ``*`` or ``**``, which match one or many
    path components, respectively. Matching is greedy. Globs may only be
    matched against complete path components (e.g. ``a/*/`` is okay, but
    ``a*/`` is not treated as a glob and will be matched literally).
    Args:
        path (:obj:`str`) The path to modify.
        prefix (:obj:`str`) The prefix to remove.
    Returns:
        :obj:`str`: The path with the prefix removed if successful, or None if
        the prefix does not match the path.
    """
    path_tokens = path.split("/")
    prefix_tokens = prefix.split("/")
    # Ignore trailing empty element (happens if prefix string ends with "/").
    if len(prefix_tokens[-1]) == 0:
        prefix_tokens = prefix_tokens[:-1]
    # Match the prefix against the path, leaving the final path name intact.
    match = _match_double_glob_tokens(path_tokens[:-1], prefix_tokens)
    # If a match was found, return the stripped path, else None
    if match == None:
        return None
    return "/".join(path_tokens[len(match):])