      overrides: Dict[str, Any] = util.SimpleFrozenDict(),
  ):
      # Make sure all files and paths exists if they are needed
      if not config_path or (str(config_path) != "-" and not config_path.exists()):
          msg.fail("Config file not found", config_path, exits=1)
      if not output_path:
          msg.info("No output directory provided")
 
</s> remove     config_path: Path,
    output_path: Optional[Path] = None,
 </s> add     config_path: Union[str, Path],
    output_path: Optional[Union[str, Path]] = None, </s> remove from typing import Optional, Dict, Any
 </s> add from typing import Optional, Dict, Any, Union
    config_path = util.ensure_path(config_path)
    output_path = util.ensure_path(output_path)
      overrides: Dict[str, Any] = util.SimpleFrozenDict(),
  ):
    config_path = util.ensure_path(config_path)
    output_path = util.ensure_path(output_path)
      # Make sure all files and paths exists if they are needed
      if not config_path or (str(config_path) != "-" and not config_path.exists()):
          msg.fail("Config file not found", config_path, exits=1)
      if not output_path:
          msg.info("No output directory provided")
keep add keep keep keep keep keep
 Add docs section for spacy.cli.train.train (#9545)

* Add section for spacy.cli.train.train

* Add link from training page to train function

* Ensure path in train helper

* Update docs

Co-authored-by: Ines Montani <ines@ines.io> 
spacy/cli/train.py