code: def get_snapshot_ids(self, machine_id):
          
          if not isinstance(machine_id, basestring):
              raise TypeError("machine_id can only be an instance of type basestring")
          snapshot_ids = self._call("getSnapshotIds",
                       in_p=[machine_id])
          return snapshot_ids
docs: Returns an array of UUIDs of all snapshots of the given machine where
          this medium is attached to.
          
          If the medium is attached to the machine in the current state, then the
          first element in the array will always be the ID of the queried machine
          (i.e. the value equal to the @c machineId argument), followed by
          snapshot IDs (if any).
          
          If the medium is not attached to the machine in the current state, then
          the array will contain only snapshot IDs.
          
          The returned array may be @c null if this medium is not attached
          to the given machine at all, neither in the current state nor in one of
          the snapshots.
  
          in machine_id of type str
              UUID of the machine to query.
  
          return snapshot_ids of type str
              Array of snapshot UUIDs of the given machine using this medium.