def get_cython_code(obj):
    """This function looks at the object and gets any additional code to
    wrap from either the `_cython_code_` method or the `_get_helpers_` method.
    """
    result = []
    if hasattr(obj, '_cython_code_'):
        code = obj._cython_code_()
        doc = '# From %s' % obj.__class__.__name__
        result.extend([doc, code] if len(code) > 0 else [])
    return result
