code: def _premis_version_from_data(data):
      
      for child in data:
          if isinstance(child, dict):
              version = child.get("version")
              if version:
                  return version
      return utils.PREMIS_VERSION
docs: Given tuple ``data`` encoding a PREMIS element, attempt to return the
      PREMIS version it is using. If none can be found, return the default PREMIS
      version.