code: def legends(value):
          
          for i, entry in enumerate(value):
              _assert_is_type('legends[{0}]'.format(i), entry, Legend)
docs: list or KeyedList of ``Legends`` : Legend definitions
  
          Legends visualize scales, and take one or more scales as their input.
          They can be customized via a LegendProperty object.