def METHOD_NAME(nfsPath):
    if nfsPath != None:
        # Get the dir at the end of the nfs path.
        currentBaseName = getBasename(nfsPath)
        # Strip off any trailing "/" from the given nfs path.
        nfsPath = getPath(nfsPath)
        if currentBaseName != "nfs":
            if currentBaseName == "pnor":
                # Strip off test/pnor/
                nfsPath = os.path.dirname(os.path.dirname(nfsPath))
            elif currentBaseName == "test":
                # Strip off test/
                nfsPath = os.path.dirname(nfsPath)
            # Verify that nfs is now the basename.
            currentBaseName = getBasename(nfsPath)
            if currentBaseName != "nfs":
                # Path not correct or easily correctable.
                nfsPath = None
    return nfsPath