code: def is_txt(filepath, strict=False):
      if strict:
          return mimetypes.guess_type(filepath)[0] == "text/plain"
      else:
          mtype = get_mimetype(filepath)
          return mtype is not None and mtype.split("/")[0] == "text"
  
imports: from subprocess import DEVNULL, PIPE, Popen
  from ..imports import *
label_desc: Use image node_id 3 for calling a global function with example usage: is_txt(filepath, strict) and returns: unknown, unknown