def METHOD_NAME(self):
    allowed_types = {
        '1': 'SIDEREAL',
        '2': 'NON_SIDEREAL'
    }
    options_str = ['{}) {}'.format(key, target_type) for key, target_type in allowed_types.items()]
    prompt = 'Which target type will your project use? {} '.format(self.style.WARNING(", ".join(options_str)))
    target_type = input(prompt)
    try:
        self.context['TARGET_TYPE'] = allowed_types[target_type]
    except KeyError:
        self.stdout.write('Error: invalid choice {}'.format(target_type))
        self.METHOD_NAME()