code: def magick_command():
      if sys.platform == "win32":
          magickhome = os.environ.get("MAGICK_HOME")
          if magickhome:
              imagemagick = [os.path.join(magickhome, "convert.exe")]
              graphicsmagick = [
                  os.path.join(magickhome, "gm.exe"),
                  "convert",
              ]
          else:
              imagemagick = None
              graphicsmagick = None
      else:
          imagemagick = ["convert"]
          graphicsmagick = ["gm", "convert"]
  
      if imagemagick and shutil.which(imagemagick[0]):
          return imagemagick
      if graphicsmagick and shutil.which(graphicsmagick[0]):
          return graphicsmagick
  
imports: from __future__ import annotations
  import logging
  import os
  import shutil
  import subprocess
  import sys
  import sysconfig
  import tempfile
  from io import BytesIO
  import pytest
  from packaging.version import parse
  from PIL import Image, ImageMath, features
label_desc: Use image node_id 20 for calling a global function with example usage: magick_command() and returns: imagemagick, graphicsmagick