code: def autobuild_trub_script(file_name, slot_assignments=None, os_info=None, sensor_graph=None,
                            app_info=None, use_safeupdate=False):
      
  
      build_update_script(file_name, slot_assignments, os_info, sensor_graph, app_info, use_safeupdate)
docs: Build a trub script that loads given firmware into the given slots.
  
      slot_assignments should be a list of tuples in the following form:
      ("slot X" or "controller", firmware_image_name)
  
      The output of this autobuild action will be a trub script in
      build/output/<file_name> that assigns the given firmware to each slot in
      the order specified in the slot_assignments list.
  
      Args:
          file_name (str): The name of the output file that we should create.
              This file name should end in .trub
          slot_assignments (list of (str, str)): A list of tuples containing
              the slot name and the firmware image that we should use to build
              our update script. Optional
          os_info (tuple(int, str)): A tuple of OS version tag and X.Y version
              number that will be set as part of the OTA script if included. Optional.
          sensor_graph (str): Name of sgf file. Optional.
          app_info (tuple(int, str)): A tuple of App version tag and X.Y version
              number that will be set as part of the OTA script if included. Optional.
          use_safeupdate (bool): If True, Enables safemode before the firmware update records, then
              disables them after the firmware update records.