import re

import jsonschema


def function_one(dict_json: dict) -> bool:
    my_schema = {
        "type": "object",
        "required": [
            "city"
        ],
        "additionalProperties": False,
        "properties": {
            "city": {
                "type": "string"
            }
        }
    }

    try:
        jsonschema.validate(instance=dict_json, schema=my_schema)
    except jsonschema.ValidationError:
        return False
    return True


def function_two(a: str) -> bool:
    pattern = re.compile(r'{\D*}')
    return bool(pattern.match(a))


def function_for_default_behavior() -> bool:
    print('Я функция по умолчанию')
    return True

7d8deced4e41d3ce4b14464f12c31071172ed593
<mask token>


def function_for_default_behavior() ->bool:
    print('Я функция по умолчанию')
    return True

<mask token>


def function_two(a: str) ->bool:
    pattern = re.compile('{\\D*}')
    return bool(pattern.match(a))


def function_for_default_behavior() ->bool:
    print('Я функция по умолчанию')
    return True

<mask token>


def function_one(dict_json: dict) ->bool:
    my_schema = {'type': 'object', 'required': ['city'],
        'additionalProperties': False, 'properties': {'city': {'type':
        'string'}}}
    try:
        jsonschema.validate(instance=dict_json, schema=my_schema)
    except jsonschema.ValidationError:
        return False
    return True


def function_two(a: str) ->bool:
    pattern = re.compile('{\\D*}')
    return bool(pattern.match(a))


def function_for_default_behavior() ->bool:
    print('Я функция по умолчанию')
    return True

import re
import jsonschema


def function_one(dict_json: dict) ->bool:
    my_schema = {'type': 'object', 'required': ['city'],
        'additionalProperties': False, 'properties': {'city': {'type':
        'string'}}}
    try:
        jsonschema.validate(instance=dict_json, schema=my_schema)
    except jsonschema.ValidationError:
        return False
    return True


def function_two(a: str) ->bool:
    pattern = re.compile('{\\D*}')
    return bool(pattern.match(a))


def function_for_default_behavior() ->bool:
    print('Я функция по умолчанию')
    return True

import re

import jsonschema


def function_one(dict_json: dict) -> bool:
    my_schema = {
        "type": "object",
        "required": [
            "city"
        ],
        "additionalProperties": False,
        "properties": {
            "city": {
                "type": "string"
            }
        }
    }

    try:
        jsonschema.validate(instance=dict_json, schema=my_schema)
    except jsonschema.ValidationError:
        return False
    return True


def function_two(a: str) -> bool:
    pattern = re.compile(r'{\D*}')
    return bool(pattern.match(a))


def function_for_default_behavior() -> bool:
    print('Я функция по умолчанию')
    return True
