code: def _aws_cmd():
      cmd = util.which("aws")
      if not cmd:
          raise remotelib.OperationError(
              "AWS Command Line Interface (CLI) is not available\n"
              "Refer to https://docs.aws.amazon.com/cli for help installing it."
          )
      return cmd
  
imports: import itertools
  import logging
  import os
  import subprocess
  import sys
  import uuid
  from guild import remote
  from guild import remote_util
  from guild import util
  from guild import var
  from .None import meta_sync
label_desc: Use image node_id 3 for calling a global function with example usage: _aws_cmd() and returns: cmd