def has_copy_constructor(class_):
class_ = class_traits.get_declaration(class_)<EOL>copy_constructor = find_copy_constructor(class_)<EOL>if copy_constructor and copy_constructor.access_type == '<STR_LIT>':<EOL><INDENT>return copy_constructor<EOL><DEDENT>
if class has public copy constructor, this function will return
    reference to it, None otherwise