class_docstr: A general-purpose logger.
  
  Makes it easy to save diagnostics, hyperparameter configurations, the 
  state of a training run, and the trained model.
docstr: Print a colorized message to stdout.
docstr_tok: ["Print","a","colorized","message","to","stdout","."]
code: def log(self, msg, color="green"):
      """Print a colorized message to stdout."""
      if proc_id() == 0:
          print(colorize(msg, color, bold=True))
  
imports: import json
  import joblib
  import shutil
  import numpy
  import tensorflow
  import torch
  import os.path, time, atexit, os
  import warnings
  from spinup.utils.mpi_tools import proc_id, mpi_statistics_scalar
  from spinup.utils.serialization_utils import convert_json
label_desc: Use image node_id 2 for calling the Logger obj's underlying member method code with example usage: obj.log(msg, color) without return types