code: def ReplaceStoredProcedure(self, sproc_link, sproc, options=None):
          
          if options is None:
              options = {}
  
          CosmosClient.__ValidateResource(sproc)
          sproc = sproc.copy()
          if sproc.get('serverScript'):
              sproc['body'] = str(sproc['serverScript'])
          elif sproc.get('body'):
              sproc['body'] = str(sproc['body'])
  
          path = base.GetPathFromLink(sproc_link)
          sproc_id = base.GetResourceIdOrFullNameFromLink(sproc_link)
          return self.Replace(sproc,
                              path,
                              'sprocs',
                              sproc_id,
                              None,
                              options)
docs: Replaces a stored procedure and returns it.
  
          :param str sproc_link:
              The link to the stored procedure.
          :param dict sproc:
          :param dict options:
              The request options for the request.
  
          :return:
              The replaced Stored Procedure.
          :rtype:
              dict