code: def remove_assigned_resource(self, resource_type: str,
                                   value: Union[str, int, float, bool] = None,
                                   parameters: dict = None):
          
          resources = DB.get_hash_value(self.key, 'resources_assigned')
          resources = ast.literal_eval(resources)
          new_resources = []
          for resource in resources:
              if resource['type'] != resource_type:
                  new_resources.append(resource)
              elif value is not None and resource['value'] != value:
                  new_resources.append(resource)
              elif parameters is not None and \
                      resource['parameters'] != parameters:
                  new_resources.append(resource)
          DB.set_hash_value(self.key, 'resources_assigned', new_resources)
docs: Remove assigned resources from the processing block.
  
          All matching resources will be removed. If only type is specified
          all resources of the specified type will be removed.
          If value and/or parameters are specified they will be used
          for matching the resource to remove.
  
          Args:
              resource_type (str): Resource type
              value: Resource value
              parameters (dict, optional): Parameters specific to the resource