code: def _find_error_type(line):
      """Find the error name given the first line of the error message.
  
      Parameters
      ----------
      line : str
          The first line of error message.
  
      Returns
      -------
      name : str The error name
      """
      end_pos = line.find(":")
      if end_pos == -1:
          return None
      err_name = line[:end_pos]
      if _valid_error_name(err_name):
          return err_name
      return None
  
imports: import re
  import atexit
  import ctypes
  import os
  import sys
  import inspect
  import platform
  import numpy
  from .None import libinfo
label_desc: Use image node_id 5 for calling a global function with example usage: _find_error_type(line) and returns: None, None, err_name