code: def memstr_to_bytes(text):
      """Convert a memory text to its value in bytes."""
      kilo = 1024
      units = dict(K=kilo, M=kilo**2, G=kilo**3)
      try:
          size = int(units[text[-1]] * float(text[:-1]))
      except (KeyError, ValueError):
          raise ValueError(
              "Invalid literal for size give: %s (type %s) should be "
              "alike '10G', '500M', '50K'." % (text, type(text))
          )
      return size
  
file_path: mlens/mlens/externals/joblib/disk.py
imports: import errno
  import os
  import shutil
  import sys
  import time
label_desc: Use image node_id 2 for calling a global function with example usage: memstr_to_bytes(text) and returns: size