code: def add_assigned_resource(self, resource_type: str,
                                value: Union[str, int, float, bool],
                                parameters: dict = None):
          
          if parameters is None:
              parameters = dict()
          resources = DB.get_hash_value(self.key, 'resources_assigned')
          resources = ast.literal_eval(resources)
          resources.append(dict(type=resource_type, value=value,
                                parameters=parameters))
          DB.set_hash_value(self.key, 'resources_assigned', resources)
docs: Add assigned resource to the processing block.
  
          Args:
              resource_type (str): Resource type
              value: Resource value
              parameters (dict, optional): Parameters specific to the resource