code: def set_focused(self, account, is_focused):
          # type: (OutlookAccount, bool) -> bool
          
          endpoint = 'https://outlook.office.com/api/v2.0/me/InferenceClassification/Overrides'
  
          if is_focused:
              classification = 'Focused'
          else:
              classification = 'Other'
  
          data = dict(ClassifyAs=classification, SenderEmailAddress=dict(Address=self.email))
  
          r = requests.post(endpoint, headers=account._headers, data=json.dumps(data))
  
          # Will raise an error if necessary, otherwise returns True
          result = check_response(r)
  
          self.focused = is_focused
  
          return result
docs: Emails from this contact will either always be put in the Focused inbox, or always put in Other, based on
          the value of is_focused.
  
          Args:
              account (OutlookAccount): The :class:`OutlookAccount <pyOutlook.core.main.OutlookAccount>`
                  the override should be set for
              is_focused (bool): Whether this contact should be set to Focused, or Other.
  
          Returns:
              True if the request was successful