docstr: Zips folder for pushing to hub.
  
  folder_path:Path to the folder to zip.
  zip_path:Path of the zip file to create.
code: def zip_directory(folder_path: str, zip_path: str):
      """Zips folder for pushing to hub.
  
      folder_path:Path to the folder to zip.
      zip_path:Path of the zip file to create."""
  
      with zipfile.ZipFile(zip_path, mode="w") as zipf:
          len_dir_path = len(folder_path)
          for root, _, files in os.walk(folder_path):
              for file in files:
                  file_path = os.path.join(root, file)
                  zipf.write(file_path, file_path[len_dir_path:])
  
file_path: spark-nlp/python/sparknlp/upload_to_hub.py
imports: import requests
  import json
  from typing import List
  import sparknlp
  import os
  import zipfile
label_desc: Use image node_id 1 for calling the PushToHub obj's underlying member method code with example usage: obj.zip_directory(folder_path, zip_path) without return types