<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _compile_value(self, data, indent_level):
 """Dispatch to correct compilation method."""

        if isinstance(data, dict):
            return self._compile_key_val(data, indent_level)
        elif isinstance(data, list):
            return self._compile_list(data, indent_level)
        else:
            return self._compile_literal(data)