def get_resource_endpoint():
resource_endpoint = os.environ.get('<STR_LIT>')<EOL>if resource_endpoint is None:<EOL><INDENT>return AZURE_RESOURCE_ENDPOINT<EOL><DEDENT>else:<EOL><INDENT>return resource_endpoint<EOL><DEDENT>
Set Azure reosurce endpoint by environment variable, else return default value.