<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate_drone_plugin(self):
 """ Generate a sample drone plugin configuration """

        example = {}
        example['pipeline'] = {}
        example['pipeline']['appname'] = {}
        example['pipeline']['appname']['image'] = ""
        example['pipeline']['appname']['secrets'] = ""
        for key, value in self.spec.items():
            if value['type'] in (dict, list):
                kvalue = f"\'{json.dumps(value.get('example', ''))}\'"
            else:
                kvalue = f"{value.get('example', '')}"
            example['pipeline']['appname'][key.lower()] = kvalue
        print(yaml.dump(example, default_flow_style=False))