def _get_cell_type(cell_type):
if isinstance(cell_type, str):<EOL><INDENT>if cell_type == '<STR_LIT>':<EOL><INDENT>return rnn.LSTMCell<EOL><DEDENT>elif cell_type == '<STR_LIT>':<EOL><INDENT>return rnn.GRUCell<EOL><DEDENT>elif cell_type == '<STR_LIT>':<EOL><INDENT>return partial(rnn.RNNCell, activation='<STR_LIT:relu>')<EOL><DEDENT>elif cell_type == '<STR_LIT>':<EOL><INDENT>return partial(rnn.RNNCell, activation='<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>raise NotImplementedError<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return cell_type<EOL><DEDENT>
Get the object type of the cell by parsing the input

    Parameters
    ----------
    cell_type : str or type

    Returns
    -------
    cell_constructor: type
        The constructor of the RNNCell