class_docstr: Container abstracting a list of callbacks.
class_docstr_tok: ["Container","abstracting","a","list","of","callbacks","."]
docstr: Turns tensors into numpy arrays or Python scalars.
docstr_tok: ["Turns","tensors","into","numpy","arrays","or","Python","scalars","."]
code: def _process_logs(self, logs):
      """Turns tensors into numpy arrays or Python scalars."""
      if logs:
          return logs
      return {}
  
imports: import collections
  import logging
  import time
  import typing
  import numpy
  from elegy.callbacks.sigint import SigInt, SigIntMode
  from .callback import Callback
  from .history import History
  from .progbar_logger import ProgbarLogger
label_desc: Use image node_id 4 for calling the CallbackList obj's underlying member method code with example usage: obj._process_logs(logs) and returns: dict, logs