def METHOD_NAME(cls, code):
    if not hasattr(code, CODE_ATTR):
        return
    byte_code_list = [x for x in code.co_code]
    length_byte_code_list = len(byte_code_list)
    for code_index in range(OPCODE_HEADER_END_INDEX, length_byte_code_list, 2):
        key = byte_code_list[code_index]
        if IMPORT_NAME == key:
            cls._validate_import(code_index, byte_code_list, code.co_names, code.co_consts)