code: def blip_modify_inf(model):
      model.generate = types.MethodType(blip_hl_generate, model)
      model.modify_qformer_attention = types.MethodType(
          modify_qformer_attention, model
      )
      model.reset_qformer_model = types.MethodType(
          reset_qformer_model, model
      )
  
file_path: prompt-highlighter/highlighter_modules/attention_qformer.py
imports: from transformers import AutoTokenizer, AutoModelForCausalLM
  import torch
  import math
  from typing import Optional, Tuple, List
  import types
  import matplotlib.pyplot
  import torch.nn
  from transformers.models.llama.modeling_llama import LlamaAttention
  from lavis.models.blip2_models.Qformer import BertSelfAttention
label_desc: Use image node_id 7 for calling a global function with example usage: blip_modify_inf(model) without return types