<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getdirs(self, section, option, raw=False, vars=None, fallback=[]):
 """ A convenience method which coerces the option in the specified section to a list of directories. """

        globs = self.getlist(section, option, fallback=[])
        return [f for g in globs for f in glob.glob(g) if os.path.isdir(f)]