code: def count_leading_spaces(s):
      ws = re.search(r"\S", s)
      if ws:
          return ws.start()
      else:
          return 0
  
imports: import re
  import inspect
  import os
  import shutil
  from elephas import spark_model, ml_model
  from elephas.parameter import client, server
  from elephas.utils import functional_utils, rdd_utils, serialization
  from elephas.ml import adapter
  from elephas.mllib import adapter
  import sys
label_desc: Use image node_id 7 for calling a global function with example usage: count_leading_spaces(s) and returns: ws, int