<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def FindTypecheckParent(cls, parents):
 """Find parent class that uses this metaclass."""

    for parent in parents:
      if hasattr(parent, "__metaclass__") and parent.__metaclass__ == cls:
        return parent
    return None