parameters: (cell)
return_statement: return all(conditions)
docstring: Checks that a given object is an RNNCell by using duck typing.
docstring_summary: Checks that a given object is an RNNCell by using duck typing.
docstring_tokens: Checks that a given object is an RNNCell by using duck typing .
function: def _like_rnncell(cell):
    """Checks that a given object is an RNNCell by using duck typing."""
    conditions = [hasattr(cell, "output_size"), hasattr(cell, "state_size"),
                  hasattr(cell, "zero_state"), callable(cell)]
    return all(conditions)
function_tokens: def _like_rnncell ( cell ) : conditions = [ hasattr ( cell , "output_size" ) , hasattr ( cell , "state_size" ) , hasattr ( cell , "zero_state" ) , callable ( cell ) ] return all ( conditions )