<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_stub(self, table, create):
 """ Get the migration stub template :param table: The table name :type table: str :param create: Whether it's a create migration or not :type create: bool :rtype: str """

        if table is None:
            return BLANK_STUB
        else:
            if create:
                stub = CREATE_STUB
            else:
                stub = UPDATE_STUB

            return stub