@staticmethod<EOL><INDENT>def validate_code_path(valid_paths, code_path, **kw):<DEDENT>
root, name = code_path.split('<STR_LIT::>', <NUM_LIT:1>)<EOL>if name not in valid_paths[root]:<EOL><INDENT>raise ValueError("<STR_LIT>" % code_path)<EOL><DEDENT>
Raise an exception if code_path is not one of our
        whitelisted valid_paths.