code: def _collect_supervisors_from_dir(self):
      endpoints = []
      for fn in glob.glob(
          self._build_endpoint_file_path(asterisk=True)
      ):
          _, pid_str = os.path.basename(fn).rsplit(".", 1)
          # detect if process exists
          if pid_str.isdigit() and not psutil.pid_exists(int(pid_str)):
              continue
          with open(fn, "r") as ep_file:
              endpoints.append(ep_file.read().strip())
      return endpoints
  
imports: import argparse
  import asyncio
  import faulthandler
  import glob
  import importlib
  import json
  import logging.config
  import os
  import sys
  import tempfile
  from typing import List
  import psutil
  from ...utils import ensure_coverage
  from ..utils import load_service_config_file, get_third_party_modules_from_config
label_desc: Use image node_id 7 for calling the OscarCommandRunner obj's underlying member method code with example usage: obj._collect_supervisors_from_dir() and returns: endpoints