<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_ids_from_hostname(self, hostname):
 """List VS ids which match the given hostname."""

        results = self.list_instances(hostname=hostname, mask="id")
        return [result['id'] for result in results]