code: def find_quantized_model_file(model_path):
      model_path = Path(model_path)
      for ext in [".safetensors", ".pt"]:
          found = list(model_path.glob(f"*{ext}"))
          if len(found) > 0:
              if len(found) != 1:
                  warnings.warn(
                      f"Detected {len(found)} {ext} model, use the first one {found[0]}."
                  )
              print(f"Detected model file {found[0]}")
              return str(found[0])
  
file_path: BigDL/python/llm/src/bigdl/llm/gptq/convert/convert_gptq_to_ggml.py
imports: import os
  import re
  import sys
  import json
  import warnings
  import struct
  import numpy
  import torch
  from sentencepiece import SentencePieceProcessor
  from pathlib import Path
  from bigdl.llm.utils.common.log4Error import invalidInputError
label_desc: Use image node_id 7 for calling a global function with example usage: find_quantized_model_file(model_path) and returns: str