<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_shade_hdrgos(**kws):
 """If no hdrgo_prt specified, and these conditions are present -> hdrgo_prt=F."""

        # KWS: shade_hdrgos hdrgo_prt section_sortby top_n
        if 'shade_hdrgos' in kws:
            return kws['shade_hdrgos']
        # Return user-sepcified hdrgo_prt, if provided
        if 'hdrgo_prt' in kws:
            return kws['hdrgo_prt']
        # If no hdrgo_prt provided, set hdrgo_prt to False if:
        #   * section_sortby == True
        #   * section_sortby = user_sort
        #   * top_n == N
        if 'section_sortby' in kws and kws['section_sortby']:
            return False
        if 'top_n' in kws and isinstance(kws['top_n'], int):
            return False
        return True