code: def setup(self, pin, mode, pull_up_down=PUD_OFF):
          
          self.rpi_gpio.setup(pin, self._dir_mapping[mode],
                              pull_up_down=self._pud_mapping[pull_up_down])
docs: Set the input or output mode for a specified pin.  Mode should be
          either OUTPUT or INPUT.