def remove_dict_key(a_dictionary,
                    val = None,
                    dkey = None):
    """
    =================================================================================================
    remove_dict_key(a_dictionary, val, dkey)
    
    This function is meant to take either a value or a key that is in the input dictionary, and
    create a new dictionary either without that key, or without the key associated with the value.
    
    =================================================================================================
    Arguments:
    
    a_dictionary  ->  A dictionary
    val           ->  A value that should be in the dictionary, that you would like to remove
    dkey          ->  A key that should be in the dictionary, that you would like to remove
    
    NOTE: Only one of the two arguments <val> and <dkey> can be set at one time.
    
    =================================================================================================
    Returns: a dictionary with one key/value pair removed.
    
    =================================================================================================
    """
    # Check to make sure that only one of the two kwargs is set
    assert val != None or dkey != None, "Either the val or dkey argument must be set..."
    # Initialize the new_dict variable to hold the ouptput
    new_dict = {}
    # Loop over the keys and values of the input dictioanry
    for key, value in a_dictionary.items():
        # If the val is set, and the current value is
        # the same as the val
        if val != None and val == value:
            # Then pass, as this must be removed from the dictionary
            pass
        # Or if the dkey is set and the current key is
        # the same as the dkey
        elif dkey != None and dkey == key:
            # Then pass, this must be removed from the dictioary
            pass
        # Otherwise,
        else:
            # Add the key/value pair to the dictionary
            new_dict[key] = value
    # and return the dictionary once the filtering is complete
    return new_dict