You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: deansi.rs
    path of file: ./repos/nushell/crates/nu-utils/src
    
    the code of the file until where you have to start completion: use std::borrow::Cow;

/// Removes ANSI escape codes an
    
pub fn strip_ansi_unlikely(string: &str) -> Cow<str> {
    // Check if any ascii control character except LF(0x0A = 10) is present,
    // which will be stripped. Includes the primary start of ANSI sequences ESC
    // (0x1B = decimal 27)
    if string.bytes().any(|x| matches!(x, 0..=9 | 11..=31)) {
        if let Ok(stripped) = String::from_utf8(strip_ansi_escapes::strip(string)) {
            return Cow::Owned(stripped);
        }
    }
    // Else case includes failures to parse!
    Cow::Borrowed(string)
}