code: def k2g(kml_path, output_dir, separate_folders, style_type, 
    style_filename):
      
      m.convert(kml_path, output_dir, separate_folders, style_type, style_filename)
docs: Given a path to a KML file, convert it to a a GeoJSON FeatureCollection file and save it to the given output directory.
  
      If ``--separate_folders``, then create several GeoJSON files, one for each folder in the KML file that contains geodata or that has a descendant node that contains geodata.
      Warning: this can produce GeoJSON files with the same geodata in case the KML file has nested folders with geodata.
  
      If ``--style_type`` is specified, then also build a JSON style file of the given style type and save it to the output directory under the file name given by ``--style_filename``.