class_docstr: Base class for different run configs.
class_docstr_tok: ["Base","class","for","different","run","configs","."]
docstr: Return the map data for a map by name or path.
docstr_tok: ["Return","the","map","data","for","a","map","by","name","or","path","."]
code: def map_data(self, map_name, players=None):
      """Return the map data for a map by name or path."""
      map_names = [map_name]
      if players:
          map_names.append(
              os.path.join(
                  os.path.dirname(map_name),
                  "(%s)%s" % (players, os.path.basename(map_name)),
              )
          )
      for name in map_names:
          path = os.path.join(self.data_dir, "Maps", name)
          if gfile.Exists(path):
              with gfile.Open(path, "rb") as f:
                  return f.read()
      raise ValueError(
          f"Map {map_name} not found in {self.data_dir}/Maps."
      )
  
imports: import collections
  import datetime
  import os
  from pysc2.lib import gfile
label_desc: Use image node_id 2 for calling the RunConfig obj's underlying member method code with example usage: obj.map_data(map_name, players) and returns: f