@staticmethod
def check_req_keys_in_dict(sd_key, req_keys, sd_instance):
    """
        Check that required keys are in a test dictionary

        Args:
            :sd_key: special key from the schemadict
            :req_keys: List of keys required in the test dictionary
            :testdict: Test dictionary

        Raises:
            :KeyError: If a required key is not found in the test dictionary
        """
    testdict_keys = list(sd_instance.testdict.keys())
    for req_key in req_keys:
        if req_key not in testdict_keys:
            raise KeyError(f'{sd_key!r}: required key {req_key!r} not found')
