def METHOD_NAME(self):
    ds_type = self.ds['type']
    ds_params = copy.copy(self.ds['params'])
    data = {
        'type': ds_type,
        'params': ds_params,
    }
    result = []
    # because the io_backend parameter is not trivially serializable
    # like the others, we special case it here:
    if "io_backend" in ds_params:
        ds_params["io_backend"] = Literal("io_backend")
        data['backend_cls'] = self.ds["params"]["io_backend"].__class__.__name__
        result.append(
            self.code_formatter(self.format_template(self.temp_ds_backend, data))
        )
    result.append(
        self.code_formatter(self.format_template(self.temp_ds, data))
    )
    return "\n".join(result)