code: def setup_pins(self, pins):
          
          # General implementation that can be optimized by derived classes.
          for pin, value in iter(pins.items()):
              self.setup(pin, value)
docs: Setup multiple pins as inputs or outputs at once.  Pins should be a
          dict of pin name to pin type (IN or OUT).