code: def _bytes_to_MB(val, decimal=2):
      """A byte-to-Megabyte converter, default using binary notation.
  
      :param val: X bytes to convert
      :return: X' MB
      """
      return round(val / (1024 * 1024), decimal)
  
file_path: colossalai/colossalai/legacy/utils/memory.py
imports: import gc
  from collections import namedtuple
  import psutil
  import torch
  import torch.distributed
  from packaging import version
  from colossalai.legacy.core import global_context
  from colossalai.logging import get_dist_logger
  from colossalai.utils import get_current_device
label_desc: Use image node_id 1 for calling a global function with example usage: _bytes_to_MB(val, decimal) and returns: round