code: def _find_num_proc(use_gpu):
      if use_gpu:
          # set it as number of executors for now (ignoring num_gpus per executor)
          sc = SparkContext.getOrCreate()
          return sc._jsc.sc().getExecutorMemoryStatus().size() - 1
      return None
  
imports: import sys
  from functools import wraps
  from horovod.spark.common.backend import SparkBackend
  from pyspark.context import SparkContext
label_desc: Use image node_id 3 for calling a global function with example usage: _find_num_proc(use_gpu) and returns: None, unknown