def table_exists(self, table):
keyspace = self.keyspace<EOL>if '<STR_LIT:.>' in table:<EOL><INDENT>keyspace, table = table.split('<STR_LIT:.>', <NUM_LIT:1>)<EOL><DEDENT>cluster_metadata = self.get_conn().cluster.metadata<EOL>return (keyspace in cluster_metadata.keyspaces and<EOL>table in cluster_metadata.keyspaces[keyspace].tables)<EOL>
Checks if a table exists in Cassandra

:param table: Target Cassandra table.
              Use dot notation to target a specific keyspace.
:type table: str