class_docstr: This should be a pickable class.
class_docstr_tok: ["This","should","be","a","pickable","class","."]
code: def _get_ray_exec(self):
      if "envs" in self.python_loc:  # conda environment
          python_bin_dir = "/".join(self.python_loc.split("/")[:-1])
          return "{}/python {}/ray".format(
              python_bin_dir, python_bin_dir
          )
      elif (
          self.python_loc == "python_env/bin/python"
      ):  # conda yarn archive on the executor
          return "python_env/bin/python python_env/bin/ray"
      else:  # system environment with ray installed; for example: /usr/local/bin/ray
          return "ray"
  
imports: import os
  import re
  import subprocess
  import time
  import uuid
  import random
  import warnings
  import tempfile
  import filelock
  import multiprocessing
  from packaging import version
  from zoo.ray.process import session_execute, ProcessMonitor
  from zoo.ray.utils import is_local
  from zoo.ray.utils import resource_to_bytes
  from zoo.ray.utils import get_parent_pid
label_desc: Use image node_id 10 for calling the RayServiceFuncGenerator obj's underlying member method code with example usage: obj._get_ray_exec() and returns: str, str, str