Get information about a particular datastream belonging to this object.

        :param dsid: datastream id
        :rtype: :class:`DatastreamProfile`

def getDatastreamProfile(self, dsid, date=None):
        """Get information about a particular datastream belonging to this object.

        :param dsid: datastream id
        :rtype: :class:`DatastreamProfile`
        """
        # NOTE: used by DatastreamObject
        if self._create:
            return None

        r = self.api.getDatastream(self.pid, dsid, asOfDateTime=date)
        return parse_xml_object(DatastreamProfile, r.content, r.url)