code: def read_txt_file(material_txt):
      if not material_txt.split(".")[-1] == "txt":
          raise ValueError("Only support txt or pdf file.")
      content = ""
      with open(material_txt) as f:
          for line in f.readlines():
              content += line
      return content
  
file_path: long-lora/inference-qlora.py
imports: import os
  import sys
  import math
  import torch
  import argparse
  import textwrap
  import transformers
  from peft import PeftModel
  from transformers import GenerationConfig, TextStreamer, BitsAndBytesConfig
  from llama_attn_replace import replace_llama_attn
label_desc: Use image node_id 2 for calling a global function with example usage: read_txt_file(material_txt) and returns: content