def BytesToMebibyte(value):
  """Converts bytes to mebibytes.

  @type value: int
  @param value: Value in bytes
  @rtype: int
  @return: Value in mebibytes

  """
  return int(round(value / (1024.0 * 1024.0), 0))
dataset/ETHPy150Open ganeti/ganeti/lib/utils/io.py/BytesToMebibyte/original