docstr: Check if ML tasks queue process is alive
docstr_tok: ["Check","if","ML","tasks","queue","process","is","alive"]
code: def get(self):
      """Check if ML tasks queue process is alive"""
      processes_dir = Path(tempfile.gettempdir()).joinpath(
          "mindsdb/processes/internal/"
      )
      if processes_dir.is_dir():
          ml_tasks_queue_mark = next(
              (
                  x
                  for x in processes_dir.iterdir()
                  if x.name.endswith("ml_task_consumer")
              ),
              None,
          )
          if ml_tasks_queue_mark is not None:
              try:
                  pid = int(ml_tasks_queue_mark.name.split("-")[0])
                  process = psutil.Process(pid)
                  if process.status() in (
                      psutil.STATUS_ZOMBIE,
                      psutil.STATUS_DEAD,
                  ):
                      raise psutil.NoSuchProcess(pid)
                  return "", 200
              except Exception:
                  return "", 404
      return "", 404
  
imports: import os
  import tempfile
  from pathlib import Path
  import psutil
  from flask import request
  from flask_restx import Resource
  from flask import current_app
  from mindsdb.api.http.namespaces.configs.util import ns_conf
  from mindsdb.utilities.telemetry import enable_telemetry, disable_telemetry, telemetry_file_exists, inject_telemetry_to_static
  from mindsdb.api.http.gui import update_static
  from mindsdb.utilities.fs import clean_unlinked_process_marks
  from mindsdb.api.http.utils import http_error
label_desc: Use image node_id 1 for calling the PingMLTaskQueue obj's underlying member method code with example usage: obj.get() and returns: str,  int, str,  int, str,  int