code: def parse_cpu_in_mcpu(cpu_string: str) -> Optional[int]:
      match = CPU_REGEX.fullmatch(cpu_string)
      if match:
          number = float(match.group(1))
          if match.group(2) == "m":
              number /= 1000
          return int(number * 1000)
      return None
  
imports: from typing import Optional, Mapping, Pattern
  import re
  import math
label_desc: Use image node_id 1 for calling a global function with example usage: parse_cpu_in_mcpu(cpu_string) and returns: None, int