def get_radio_by_name(self, radio_name: str) -> '<STR_LIT>':
if self.has_radio_presets:<EOL><INDENT>for k in FlyingUnit.RadioPresets.radio_enum[self.unit_type].keys():<EOL><INDENT>if radio_name == FlyingUnit.RadioPresets.radio_enum[self.unit_type][k]['<STR_LIT>']:<EOL><INDENT>return FlyingUnit.RadioPresets(self, k)<EOL><DEDENT><DEDENT>raise TypeError('<STR_LIT>'.format(radio_name, self.unit_type))<EOL><DEDENT>else:<EOL><INDENT>raise TypeError('<STR_LIT>'.format(self.unit_id, self.unit_name))<EOL><DEDENT>
Args:
    radio_name: radio name

Returns: radio presets for this radio