code: def is_code_linelen(lines, thresh=60):
      # Decide based on chars per newline threshold
      total_alnum_chars = sum(
          len(re.findall(r"\w", line.prelim_text)) for line in lines
      )
      total_newlines = max(len(lines) - 1, 1)
  
      if total_alnum_chars == 0:
          return False
  
      ratio = total_alnum_chars / total_newlines
      return ratio < thresh
  
imports: from marker.schema import Span, Line, Page
  import re
  from typing import List
  import fitz
label_desc: Use image node_id 1 for calling a global function with example usage: is_code_linelen(lines, thresh) and returns: unknown, False