code: def __get_basic_auth_header(self):
          
          if self.secret_key is None:
              return {}
  
          # encode/decode for py2/py3 compatibility
          auth_b64 = "%s:%s" % (self.client_id, self.secret_key)
          auth_b64 = base64.b64encode(auth_b64.encode('utf-8'))
          auth_b64 = auth_b64.decode('utf-8')
  
          return {'Authorization': 'Basic %s' % auth_b64}
docs: Return the Basic Authorization header for oauth if secret_key exists
  
          Returns
          -------
          type
              A dictionary that contains the Basic Authorization key/value,
              or {} if secret_key is None