@staticmethod
def preprocess_sample(sample, api_schema):
    """Modify a sample to set default or missing fields.

        Args:
           sample (Any): A definition for a single sample generated from parsed yaml.
           api_schema (api.API): The schema that defines the API to which the sample belongs.
        """
    sample['package_name'] = api_schema.naming.warehouse_package_name
    sample.setdefault('response', [{'print': ['%s', '$resp']}])
