code: def data_group_type(self, group_data):
          
          if isinstance(group_data, dict):
              # process file content
              file_content = group_data.pop('fileContent', None)
              if file_content is not None:
                  self._files[group_data.get('xid')] = {
                      'fileContent': file_content,
                      'type': group_data.get('type'),
                  }
          else:
              GROUPS_STRINGS_WITH_FILE_CONTENTS = ['Document', 'Report']
              # process file content
              if group_data.data.get('type') in GROUPS_STRINGS_WITH_FILE_CONTENTS:
                  self._files[group_data.data.get('xid')] = group_data.file_data
              group_data = group_data.data
          return group_data
docs: Return dict representation of group data.
  
          Args:
              group_data (dict|obj): The group data dict or object.
  
          Returns:
              dict: The group data in dict format.