code: def _build_endpoint_file_path(
      cls, pid: int = None, asterisk: bool = False
  ):
      pid = pid or os.getpid()
      return os.path.join(
          tempfile.gettempdir(),
          f'{cls._port_file_prefix}.{"*" if asterisk else pid}',
      )
  
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 5 for calling the OscarCommandRunner obj's underlying member method code with example usage: obj._build_endpoint_file_path(cls, pid, asterisk) and returns: os