human
Complete the below
def get_roles(user=None, with_standard=True):

    ''''get roles of current user'
    '''
 ... Can you provide a the Python program you requested?
assistant
#Here is the Python program you requested.
    if (not user):
        user = frappe.session.user
    if (user == u'Guest'):
        return [u'Guest']
    def get():
        return ([r[0] for r in frappe.db.sql(u"select    role    from    `tabHas    Role`\n DCTB  DCTB  DCTB where    parent=%s    and    role    not    in    ('All',    'Guest')", (user,))] + [u'All', u'Guest'])
    roles = frappe.cache().hget(u'roles', user, get)
    if (not with_standard):
        roles = filter((lambda x: (x not in [u'All', u'Guest', u'Administrator'])), roles)
    return roles