<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def assets(self, asset_type=None):
 """ Gets the assets of a Victim Args: asset_type: Yields: asset json """

        if not self.can_update():
            self._tcex.handle_error(910, [self.type])

        if not asset_type:
            for a in self.tc_requests.victim_assets(
                self.api_type, self.api_sub_type, self.unique_id
            ):
                yield a
        if asset_type == 'PHONE':
            for a in self.tc_requests.victim_phone_assets(
                self.api_type, self.api_sub_type, self.unique_id
            ):
                yield a
        if asset_type == 'EMAIL':
            for a in self.tc_requests.victim_email_assets(
                self.api_type, self.api_sub_type, self.unique_id
            ):
                yield a
        if asset_type == 'NETWORK':
            for a in self.tc_requests.victim_network_assets(
                self.api_type, self.api_sub_type, self.unique_id
            ):
                yield a
        if asset_type == 'SOCIAL':
            for a in self.tc_requests.victim_social_assets(
                self.api_type, self.api_sub_type, self.unique_id
            ):
                yield a
        if asset_type == 'WEB':
            for a in self.tc_requests.victim_web_assets(
                self.api_type, self.api_sub_type, self.unique_id
            ):
                yield a

        self._tcex.handle_error(
            925, ['asset_type', 'assets', 'asset_type', 'asset_type', asset_type]
        )