def METHOD_NAME(self, cluster_id, types, instance_ids, error_code=None):
    expected_params = {'ClusterId': cluster_id, 'InstanceGroupTypes': types}
    response = {'Instances': [{
        'Ec2InstanceId': inst_id
    } for inst_id in instance_ids]}
    self._stub_bifurcator(
        'list_instances', expected_params, response, error_code=error_code)