def frame_from_raw(raw):
command, payload = extract_from_frame(raw)<EOL>frame = create_frame(command)<EOL>if frame is None:<EOL><INDENT>PYVLXLOG.warning("<STR_LIT>", command, "<STR_LIT::>".join("<STR_LIT>".format(c) for c in raw))<EOL>return None<EOL><DEDENT>frame.validate_payload_len(payload)<EOL>frame.from_payload(payload)<EOL>return frame<EOL>
Create and return frame from raw bytes.