code: def avg_sent_len(toklabels):
      if toklabels.endswith(".json"):
          with open(toklabels, "r") as f:
              l = json.load(f)
  
          l = ["".join([str(x[1]) for x in para]) for para in l]
      else:
          with open(toklabels, "r") as f:
              l = "".join(f.readlines())
  
          l = l.split("\n\n")
  
      sentlen = [len(x) + 1 for para in l for x in para.split("2")]
      return sum(sentlen) / len(sentlen)
  
label_desc: Use image node_id 1 for calling a global function with example usage: avg_sent_len(toklabels) and returns: unknown