<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_targets_by_plugin(plugin_name, conn=None):
 """ get_targets_by_plugin function from Brain.Targets table :return: <generator> yields dict objects """

    targets = RBT
    results = targets.filter({PLUGIN_NAME_KEY: plugin_name}).run(conn)
    for item in results:
        yield item