def METHOD_NAME(length=6):
    """Returns randomly generated password
    :param length: Length of password
    :return:
    """
    chars = string.ascii_letters + string.digits + string.punctuation + string.punctuation
    chars = chars.replace('"', '')
    chars = chars.replace("'", "")
    chars = chars.replace("$", "")
    chars = chars.replace("/", "")
    chars = chars.replace("\\", "")
    chars = chars.replace("!", "")
    while True:
        password = ''.join(random.choice(chars) for _ in range(length))
        regex_bool = re.match('^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*\W)[a-zA-Z0-9\S]{6,}$', password)  # noqa: W605
        if regex_bool:
            break
    return password