code: def _makedirs(path: str) -> str:
      """Return absolute path to a file after creating all directories in the path."""
      abspath = os.path.abspath(path)
      dirname = os.path.dirname(abspath)
      if dirname and not os.path.exists(dirname):
          os.makedirs(dirname)
      return abspath
  
imports: import io
  import json
  import os
  from typing import Union
  from lets_plot._global_settings import get_global_bool, has_global_value, FRAGMENTS_ENABLED
label_desc: Use image node_id 10 for calling a global function with example usage: _makedirs(path) and returns: abspath