code: def get_nameid_format(self):
          
          nameid_format = None
          nameid_data = self.get_nameid_data()
          if nameid_data and 'Format' in nameid_data.keys():
              nameid_format = nameid_data['Format']
          return nameid_format
docs: Gets the NameID Format provided by the SAML Response from the IdP
  
          :returns: NameID Format
          :rtype: string|None