code: def build_script(self):
      bash_lines = [
          textwrap.dedent(
              """
          #!/bin/bash
          if [[ "$YARN_CONTAINER_RUNTIME_TYPE" == "docker" ]]; then
            export MARS_USE_CGROUP_STAT=1
          else
            export MARS_USE_PROCESS_STAT=1
          fi
          if [[ -n $MARS_SOURCE_PATH ]]; then export PYTHONPATH=$PYTHONPATH:$MARS_SOURCE_PATH; fi
          if [[ -n $MARS_YARN_PATH ]]; then export PATH=$MARS_YARN_PATH:$PATH; fi
          """
          ).strip()
      ]
  
      if not self._env_scheme:
          bash_lines.append("source mars_env/bin/activate")
          python_executable = "mars_env/bin/python"
      elif self._env_scheme == "conda":
          bash_lines.append(f'conda activate "{self._env_path}"')
          python_executable = "python"
      elif self._env_scheme == "venv":
          bash_lines.append(f'source "{self._env_path}/bin/activate"')
          python_executable = self._env_path + "/bin/python"
      else:  # pragma: no cover
          python_executable = self._env_path
  
      cmd = self._cmd_tmpl.format(executable=python_executable)
      bash_lines.append(
          f"{cmd} -m {_get_local_app_module(self.service_name)} {self._extra_args} > /tmp/{self.service_name}.stdout.log 2> /tmp/{self.service_name}.stderr.log"
      )
      return "\n".join(bash_lines) + "\n"
  
imports: import os
  import textwrap
  from urllib.parse import urlparse
  from ...utils import parse_readable_size
label_desc: Use image node_id 3 for calling the MarsServiceConfig obj's underlying member method code with example usage: obj.build_script() and returns: unknown