code: def _get_spark_local_cores(self):
      local_symbol = re.match(r"local\[(.*)\]", self.sc.master).group(1)
      if local_symbol == "*":
          return multiprocessing.cpu_count()
      else:
          return int(local_symbol)
  
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 6 for calling the RayContext obj's underlying member method code with example usage: obj._get_spark_local_cores() and returns: multiprocessing, int