code: def cmd_nmake(makefile=None, target="", params=None):
      if params is None:
          params = ""
      elif isinstance(params, list) or isinstance(params, tuple):
          params = " ".join(params)
      else:
          params = str(params)
  
      return " ".join(
          [
              "{nmake}",
              "-nologo",
              f'-f "{makefile}"' if makefile is not None else "",
              f"{params}",
              f'"{target}"',
          ]
      )
  
imports: import os
  import shutil
  import struct
  import subprocess
  import sys
label_desc: Use image node_id 8 for calling a global function with example usage: cmd_nmake(makefile, target, params) and returns: str