code: def _export(self, path, variables_saver):
      
      self._saved_model_handler.export(path, variables_saver=variables_saver)
  
      module_def_proto = module_def_pb2.ModuleDef()
      module_def_proto.format = module_def_pb2.ModuleDef.FORMAT_V3
      module_def_filename = get_module_proto_path(path)
      tf_utils.atomic_write_string_to_file(
          module_def_filename,
          module_def_proto.SerializeToString(),
          overwrite=False)
      logging.info("Exported TF-Hub module to: %s", path)
docs: Internal.
  
      Args:
        path: string where to export the module to.
        variables_saver: an unary-function that writes the module variables
          checkpoint on the given path.