human
Complete the below
def is_table(doctype):

    ''''Returns True if `istable` property (indicating child Table) is set for given DocType.'
    '''

Give me a the Python code you requested?
assistant
#Here is the Python code you requested.
    def get_tables():
        return db.sql_list(u'select    name    from    tabDocType    where    istable=1')
    tables = cache().get_value(u'is_table', get_tables)
    return (doctype in tables)