code: def get_required_commands(
      executables: List[str],
  ) -> CommandsExtension:
      def wrapper() -> List[str]:
          commands = []
          for exe in executables:
              commands.append(
                  f'((command -v {exe} > /dev/null) || (echo "{exe} is required" && exit 1))'
              )
          return commands
  
      return wrapper
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_required_commands(executables) and returns: wrapper, commands