code: def set_latest_version(self, all_versions: typing.List[str]):
      if not self.version:
          self.version = all_versions[0]
      else:
          self.version = self.versioning.get_latest_partial_version(
              self.version, all_versions
          )
  
file_path: modelkit/modelkit/assets/settings.py
imports: import os
  import re
  import typing
  from modelkit.assets import errors
  from modelkit.assets.versioning.major_minor import MajorMinorAssetsVersioningSystem
  from modelkit.assets.versioning.simple_date import SimpleDateAssetsVersioningSystem
  from modelkit.assets.versioning.versioning import AssetsVersioningSystem
label_desc: Use image node_id 4 for calling the AssetSpec obj's underlying member method code with example usage: obj.set_latest_version(all_versions) without return types