code: def config_logging(debug: bool = False) -> None:
      
      if debug:
          level = 'DEBUG'
          tf_level = tf.logging.INFO
      else:
          level = 'INFO'
          tf_level = tf.logging.ERROR
  
      logging_config = config_dict('logging.json')
      for logger in logging_config['loggers'].values():
          logger['level'] = level
  
      logging.config.dictConfig(logging_config)
      tf.logging.set_verbosity(tf_level)
docs: Set-up application and `tensorflow` logging.
  
      :param debug: show or hide debug messages