docstr: Pushes model to Hub.
  
  Keyword Arguments:
  model_data:Dictionary containing info about the model such as Name and Language.
  GIT_TOKEN: Token required for pushing to hub.
code: def push_to_hub(
      name: str,
      language: str,
      model_zip_path: str,
      task: str,
      pythonCode: str,
      GIT_TOKEN: str,
      title: str = None,
      tags: List[str] = None,
      dependencies: str = None,
      description: str = None,
      predictedEntities: str = None,
      sparknlpVersion: str = None,
      howToUse: str = None,
      liveDemo: str = None,
      runInColab: str = None,
      scalaCode: str = None,
      nluCode: str = None,
      results: str = None,
      dataSource: str = None,
      includedModels: str = None,
      benchmarking: str = None,
  ) -> str:
      """Pushes model to Hub.
  
      Keyword Arguments:
      model_data:Dictionary containing info about the model such as Name and Language.
      GIT_TOKEN: Token required for pushing to hub.
      """
  
      model_data = {
          item: value
          for (item, value) in locals().items()
          if value is not None
      }
      PushToHub.check_for_required_info(model_data)
      model_data = PushToHub.create_docs(model_data)
  
      r1 = requests.post(
          "https://modelshub.johnsnowlabs.com/api/v1/models",
          data=json.dumps(model_data),
          headers={
              "Content-type": "application/json",
              "Authorization": f"Bearer {GIT_TOKEN}",
          },
      )
  
      if r1.status_code == 201:
          r2 = requests.post(
              "https://modelshub.johnsnowlabs.com/api/v1/models/%s/file"
              % r1.json()["id"],
              data=open(model_data["model_zip_path"], "rb"),
              headers={"Authorization": f"Bearer {GIT_TOKEN}"},
          )
          if r2.status_code == 200:
              print(r2.json()["message"])
              return r2.json()["message"]
      else:
          print(
              f"Something Went Wrong During the Upload. Got Status Code: {r1.status_code}"
          )
          return f"Something Went Wrong During the Upload. Got Status Code: {r1.status_code}"
  
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 4 for calling the PushToHub obj's underlying member method code with example usage: obj.push_to_hub(name, language, model_zip_path, task, pythonCode, GIT_TOKEN, title, tags, dependencies, description, predictedEntities, sparknlpVersion, howToUse, liveDemo, runInColab, scalaCode, nluCode, results, dataSource, includedModels, benchmarking) and returns: str, r1, r2