@staticmethod
    def loads(text, validate=True):
        """ Parses a text string to generate a ConanFileReference object
        """
        text = ConanFileReference.whitespace_pattern.sub("", text)
        tokens = ConanFileReference.sep_pattern.split(text)
        try:
            name = tokens[0]
            version = tokens[1]
            user = tokens[2]
            channel = tokens[3]
        except __HOLE__:
            raise ConanException("Wrong package recipe reference %s\nWrite something like "
                                 "OpenCV/1.0.6@phil/stable" % text)
        return ConanFileReference(name, version, user, channel, validate)
dataset/ETHPy150Open conan-io/conan/conans/model/ref.py/ConanFileReference.loads