code: def get_upstream_paths(self, port):
          
          base_paths = {
                  'replay': self.REPLAY_API % port,
                  'cdx-server': self.CDX_API % port,
                 }
  
          if self.recorder_path:
              base_paths['record'] = self.recorder_path
  
          return base_paths
docs: Retrieve a dictionary containing the full URLs of the upstream apps
  
          :param int port: The port used by the replay and cdx servers
          :return: A dictionary containing the upstream paths (replay, cdx-server, record [if enabled])
          :rtype: dict[str, str]