@classmethod
    def from_string(cls, string):
        if re.match('(\d+)x(\d+),?(\w*)', string):
            sizes = [x for x in re.match(
                '(\d+)x(\d+)(,?[c|C]?)', string).groups()]
            return {
                'width': int(sizes[0]), 'height': int(sizes[1]),
                'crop': bool(sizes[2])}
Creates a Graph Node from the given AST node,
dataset/ETHPy150Open vinyll/django-imagefit/imagefit/models.py/Presets.from_string--crossover with--dataset/ETHPy150Open spranesh/Redhawk/redhawk/common/writers/dot_writer.py/DotWriter.AddASTNodeToGraph