code: def ShutdownInstance(r, instance, dry_run=False, no_remember=False,
                       timeout=120):
      
  
      query = {
          "dry-run": dry_run,
          "no-remember": no_remember,
      }
  
      content = {
          "timeout": timeout,
      }
  
      return r.request("put", "/2/instances/%s/shutdown" % instance,
                       query=query, content=content)
docs: Shuts down an instance.
  
      @type instance: str
      @param instance: the instance to shut down
      @type dry_run: bool
      @param dry_run: whether to perform a dry run
      @type no_remember: bool
      @param no_remember: if true, will not record the state change
      @rtype: string
      @return: job id