code: def configure_duo_behavior(self, mount_point, push_info=None, user_agent=None, username_format='%s'):
          
          params = {
              'username_format': username_format,
          }
          if push_info is not None:
              params['push_info'] = push_info
          if user_agent is not None:
              params['user_agent'] = user_agent
          api_path = '/v1/auth/{mount_point}/duo/config'.format(
              mount_point=mount_point,
          )
          return self._adapter.post(
              url=api_path,
              json=params,
          )
docs: Configure Duo second factor behavior.
  
          This endpoint allows you to configure how the original auth method username maps to the Duo username by
          providing a template format string.
  
          Supported methods:
              POST: /auth/{mount_point}/duo/config. Produces: 204 (empty body)
  
  
          :param mount_point: The "path" the method/backend was mounted on.
          :type mount_point: str | unicode
          :param push_info: A string of URL-encoded key/value pairs that provides additional context about the
              authentication attempt in the Duo Mobile app
          :type push_info: str | unicode
          :param user_agent: User agent to connect to Duo (default "")
          :type user_agent: str | unicode
          :param username_format: Format string given auth method username as argument to create Duo username
              (default '%s')
          :type username_format: str | unicode
          :return: The response of the configure_duo_behavior request.
          :rtype: requests.Response