def get_outputs(self):
    if isinstance(self.name, str):
        return [self.name]
    elif isinstance(self.name, list):
        return self.name
    else:
        raise RuntimeError('RunTarget: self.name is neither a list nor a string. This is a bug')
def get_outputs(self):
    if isinstance(self.name, str):
        return [self.name]
    elif isinstance(self.name, list):
        return self.name
    else:
        raise RuntimeError('RunTarget: self.name is neither a list nor a string. This is a bug')