def METHOD_NAME(self, string):
    subjects = []
    for subject in self._subjects:
        for image_name in subject:
            if string in image_name:
                subjects.append(subject)
                break
    return subjects