def METHOD_NAME(layout_file):
	layout_content = read_file(layout_file)
	last_comment = ""
	layouts = {}
	for cur in layout_content:
		if len(cur) > 0 and cur[0] == '%':
			last_comment = re.sub(r'(^%|bits.*$)', "", cur).strip()
			continue
		l = re.match(r'\\newcommand{\\(layout\w+)}.*{', cur)
		if l:
			a = last_comment.split(" ")
			pos = []
			names = []
			for a1 in a:
				tmp = re.match(r'(\d+)<(\S+)>', a1)
				if tmp:
					pos += [int(tmp.group(1), 10)]
					names += [tmp.group(2)]
					continue
				pos += [int(a1, 10)]
				names += [None]
			layouts[l.group(1)] = (pos, names)