def map(self, name, key_type, value_type, **kwargs):
        """Defines a map property on the object.

        Args:
            name: the name of the property
            key_type: the type of the keys in the map
            value_type: the type of the values in the map


        Returns:
            a :class:`Map`
        """
        map_view = MapView(**kwargs)
        map_type = Map(key_type=key_type, value_type=value_type)
        self.define_property(name, map_type, view=map_view, **kwargs)
        return map_type
Defines a map property on the object.

        Args:
            name: the name of the property
            key_type: the type of the keys in the map
            value_type: the type of the values in the map


        Returns:
            a :class:`Map`
        
fiftyone/operators/types.py