code: def initialize_registry(args: argparse.Namespace, backend: StorageBackend, log: logging.Logger):
      
      try:
          backend.reset(args.force)
      except ExistingBackendError:
          return 1
  
      log.info("Resetting the index ...")
      backend.index.reset()
      try:
          backend.index.upload("reset", {})
      except ValueError:
          return 1
      log.info("Successfully initialized")
docs: Initialize the registry and the index.
  
      :param args: :class:`argparse.Namespace` with "backend", "args", "force" and "log_level".
      :param backend: Backend which is responsible for working with model files.
      :param log: Logger supplied by supply_backend
      :return: None