code: def check_hardware():
      print("----------Hardware Info----------")
      print("machine      :", platform.machine())
      print("processor    :", platform.processor())
      if sys.platform.startswith("darwin"):
          pipe = subprocess.Popen(
              ("sysctl", "-a"), stdout=subprocess.PIPE
          )
          output = pipe.communicate()[0]
          for line in output.split(b"\n"):
              if b"brand_string" in line or b"features" in line:
                  print(line.strip())
      elif sys.platform.startswith("linux"):
          subprocess.call(["lscpu"])
      elif sys.platform.startswith("win32"):
          subprocess.call(["wmic", "cpu", "get", "name"])
  
file_path: mxnet/tools/diagnose.py
imports: import platform, subprocess, sys, os
  import socket, time
  import argparse
label_desc: Use image node_id 7 for calling a global function with example usage: check_hardware() without return types