code: def take(attributes, properties):
      
      assert is_iterable_typed(attributes, basestring)
      assert is_iterable_typed(properties, basestring)
      result = []
      for e in properties:
          if b2.util.set.intersection(attributes, feature.attributes(get_grist(e))):
              result.append(e)
      return result
docs: Returns a property set which include all
      properties in 'properties' that have any of 'attributes'.