code: def log_model(self, is_best, prefix, metadata=None):
      model_path = os.path.join(self.save_dir, prefix + ".pdparams")
      artifact = self.wandb.Artifact(
          "model-{}".format(self.run.id),
          type="model",
          metadata=metadata,
      )
      artifact.add_file(model_path, name="model_ckpt.pdparams")
  
      aliases = [prefix]
      if is_best:
          aliases.append("best")
  
      self.run.log_artifact(artifact, aliases=aliases)
  
file_path: PaddleOCR/ppocr/utils/loggers/wandb_logger.py
imports: import os
  from .base_logger import BaseLogger
label_desc: Use image node_id 4 for calling the WandbLogger obj's underlying member method code with example usage: obj.log_model(is_best, prefix, metadata) without return types