class_docstr: Base run config for public installs.
class_docstr_tok: ["Base","run","config","for","public","installs","."]
code: def get_versions(self, containing=None):
      versions_dir = os.path.join(self.data_dir, "Versions")
      version_prefix = "Base"
      versions_found = sorted(
          int(v[len(version_prefix) :])
          for v in os.listdir(versions_dir)
          if v.startswith(version_prefix)
      )
      if not versions_found:
          raise sc_process.SC2LaunchError(
              "No SC2 Versions found in %s" % versions_dir
          )
      known_versions = [
          v
          for v in lib.VERSIONS.values()
          if v.build_version in versions_found
      ]
      # Add one more with the max version. That one doesn't need a data version
      # since SC2 will find it in the .build.info file. This allows running
      # versions newer than what are known by pysc2, and so is the default.
      known_versions.append(
          lib.Version("latest", max(versions_found), None, None)
      )
      ret = lib.version_dict(known_versions)
      if containing is not None and containing not in ret:
          raise ValueError(
              "Unknown game version: %s. Known versions: %s."
              % (containing, sorted(ret.keys()))
          )
      return ret
  
imports: import copy
  import os
  import platform
  import subprocess
  import sys
  from absl import flags
  from absl import logging
  from pysc2.lib import sc_process
  from pysc2.run_configs import lib
label_desc: Use image node_id 3 for calling the LocalBase obj's underlying member method code with example usage: obj.get_versions(containing) and returns: ret