code: def reconfigure_medium_attachments(self, attachments):
          
          if not isinstance(attachments, list):
              raise TypeError("attachments can only be an instance of type list")
          for a in attachments[:10]:
              if not isinstance(a, IMediumAttachment):
                  raise TypeError(
                          "array can only contain objects of type IMediumAttachment")
          self._call("reconfigureMediumAttachments",
                       in_p=[attachments])
docs: Reconfigure all specified medium attachments in one go, making sure
          the current state corresponds to the specified medium.
  
          in attachments of type :class:`IMediumAttachment`
              Array containing the medium attachments which need to be
              reconfigured.
  
          raises :class:`VBoxErrorInvalidVmState`
              Machine session is not open.
          
          raises :class:`VBoxErrorInvalidObjectState`
              Session type is not direct.