def get_address_territory ( address_name ) :
"str"
territory = None
if address_name :
    address_fields = webnotes . conn . get_value ( "str" , address_name ,
        [ "str" , "str" , "str" ] )
    for value in address_fields :
        territory = webnotes . conn . get_value ( "str" , value )
        if territory :
            break
territory

def get_address_territory ( address_name ) :
    "str"
    territory = None
    if address_name :
        address_fields = webnotes . conn . get_value ( "str" , address_name ,
            [ "str" , "str" , "str" ] )
        for value in address_fields :
            territory = webnotes . conn . get_value ( "str" , value )
            if territory :
                break
    return territory

次に示すpythonコードの誤りを修正しなさい。