def METHOD_NAME(self, key):
    proc = self.startProcess(
        command=self.sudo,
        arguments=[self.tedge, "config", "get", key],
        stdouterr="tedge_get_config_key",
        expectedExitStatus="==0",
    )
    with open(proc.stdout) as data:
        value = data.read().strip()
    # Do not set when this is in stdout:
    # "The provided config key: 'c8y.url' is not set"
    if "is not set" in value:
        return None
    else:
        return value