code: def get_steam():
    
    # Helper function which checks if the potential userdata directory exists
    # and returns a new Steam instance with that userdata directory if it does.
    # If the directory doesnt exist it returns None instead
    helper = lambda udd: Steam(udd) if os.path.exists(udd) else None
  
    # For both OS X and Linux, Steam stores it's userdata in a consistent
    # location.
    plat = platform.system()
    if plat == 'Darwin':
      return helper(paths.default_osx_userdata_path())
    if plat == 'Linux':
      return helper(paths.default_linux_userdata_path())
  
    # Windows is a bit trickier. The userdata directory is stored in the Steam
    # installation directory, meaning that theoretically it could be anywhere.
    # Luckily, Valve stores the installation directory in the registry, so its
    # still possible for us to figure out automatically
    if plat == 'Windows':
      possible_dir = winutils.find_userdata_directory()
      # Unlike the others, `possible_dir` might be None (if something odd
      # happened with the registry)
      return helper(possible_dir) if possible_dir is not None else None
    # This should never be hit. Windows, OS X, and Linux should be the only
    # supported platforms.
    # TODO: Add logging here so that the user (developer) knows that something
    # odd happened.
    return None
docs: Returns a Steam object representing the current Steam installation on the
    users computer. If the user doesn't have Steam installed, returns None.