code: def _write_supervisor_endpoint_file(self, args):
      file_name = self._build_endpoint_file_path()
      with open(file_name, "w") as port_file:
          port_file.write(args.endpoint)
      return file_name
  
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 6 for calling the OscarCommandRunner obj's underlying member method code with example usage: obj._write_supervisor_endpoint_file(args) and returns: file_name