code: def count_leading_spaces(s):
      ws = re.search(r"\S", s)
      if ws:
          return ws.start()
      else:
          return 0
  
file_path: autokeras/docs/keras_autodoc/utils.py
imports: import importlib
  import inspect
  import os
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: count_leading_spaces(s) and returns: ws, int