class_docstr: Manager that fetches system related info
class_docstr_tok: ["Manager","that","fetches","system","related","info"]
docstr: Converts bytes `value` from `format_in` to `format_out`.
  
  Parameters
  ----------
  value: float
  format_in: {"B", "KB", "MB", "GB", "TB", "PB"}
  format_out: {"B", "KB", "MB", "GB", "TB", "PB"}
  
  Returns
  -------
  value in `format_out` format.
docstr_tok: ["Converts","bytes","`","value","`","from","`","format_in","`","to","`","format_out","`",".","Parameters","--","--","--","--","--","value",":","float","format_in",":","{","``","B","''",",","``","KB","''",",","``","MB","''",",","``","GB","''",",","``","TB","''",",","``","PB","''","}","format_out",":","{","``","B","''",",","``","KB","''",",","``","MB","''",",","``","GB","''",",","``","TB","''",",","``","PB","''","}","Returns","--","--","--","-","value","in","`","format_out","`","format","."]
code: def bytes_converter(
      value: float, format_in: str, format_out: str
  ) -> float:
      """
      Converts bytes `value` from `format_in` to `format_out`.
  
      Parameters
      ----------
      value: float
      format_in: {"B", "KB", "MB", "GB", "TB", "PB"}
      format_out: {"B", "KB", "MB", "GB", "TB", "PB"}
  
      Returns
      -------
      value in `format_out` format.
      """
      valid_formats = ["B", "KB", "MB", "GB", "TB", "PB"]
      assert format_in in valid_formats
      assert format_out in valid_formats
      bytes = value
      for format in valid_formats:
          if format_in == format:
              break
          bytes *= 1024
      output = bytes
      for format in valid_formats:
          if format_out == format:
              break
          output /= 1024
      return output
  
imports: import logging
  import multiprocessing
  import os
  import shutil
  import subprocess
  from typing import Union
  from autogluon.common.utils.try_import import try_import_ray
  from .distribute_utils import DistributedContext
  from .lite import disable_if_lite_mode
  from .utils import bytes_to_mega_bytes
label_desc: Use image node_id 9 for calling the ResourceManager obj's underlying member method code with example usage: obj.bytes_converter(value, format_in, format_out) and returns: output