code: def plat_name_to_binary_path(plat_name):
      """
      Given a platform name, returns the path to the Go binaries to use.
  
      The platform name is the thing passed to `python setup.py bdist_wheel --plat-name ...`.
      """
      # These separators can be different things depending on where it comes from, so standardize
      plat_name = plat_name.replace("-", "_")
      plat_name = plat_name.replace(".", "_")
      # Simple ones
      if plat_name in PLAT_NAME_TO_BINARY_PATH:
          return PLAT_NAME_TO_BINARY_PATH[plat_name]
      # We need to do clever stuff for OS X, because it could be any version number
      if re.match(r"macosx_\d+(_\d+)?_x86_64", plat_name):
          return "darwin/amd64"
      raise Exception("unsupported plat_name: " + plat_name)
  
file_path: keepsake/python/setup.py
imports: import setuptools
  from setuptools.command.develop import develop
  from distutils.command.build_scripts import build_scripts
  from distutils.util import convert_path, get_platform
  import os
  from pathlib import Path
  import re
  import shutil
  import ast
label_desc: Use image node_id 1 for calling a global function with example usage: plat_name_to_binary_path(plat_name) and returns: PLAT_NAME_TO_BINARY_PATH, str