code: def score_log_path(file_path):
      """
      Helper that will determine corresponding log file (e.g. /path/to/demo.pt to /path/to/demo.json
      """
      model_suffix = os.path.splitext(file_path)
      if model_suffix[1]:
          score_log_path = f"{file_path[:-len(model_suffix[1])]}.json"
      else:
          score_log_path = f"{file_path}.json"
      return score_log_path
  
file_path: stanza/stanza/models/lang_identifier.py
imports: import argparse
  import json
  import logging
  import os
  import random
  import torch
  from datetime import datetime
  from stanza.models.common import utils
  from stanza.models.langid.data import DataLoader
  from stanza.models.langid.trainer import Trainer
  from stanza.utils.get_tqdm import get_tqdm
label_desc: Use image node_id 6 for calling a global function with example usage: score_log_path(file_path) and returns: score_log_path