code: def generate_method_deprecation_message(to_be_removed_in_version, old_method_name, method_name=None, module_name=None):
      
      message = "Call to deprecated function '{old_method_name}'. This method will be removed in version '{version}'".format(
          old_method_name=old_method_name,
          version=to_be_removed_in_version,
      )
      if method_name is not None and module_name is not None:
          message += " Please use the '{method_name}' method on the '{module_name}' class moving forward.".format(
              method_name=method_name,
              module_name=module_name,
          )
      return message
docs: Generate a message to be used when warning about the use of deprecated methods.
  
      :param to_be_removed_in_version: Version of this module the deprecated method will be removed in.
      :type to_be_removed_in_version: str
      :param old_method_name: Deprecated method name.
      :type old_method_name:  str
      :param method_name:  Method intended to replace the deprecated method indicated. This method's docstrings are
          included in the decorated method's docstring.
      :type method_name: str
      :param module_name: Name of the module containing the new method to use.
      :type module_name: str
      :return: Full deprecation warning message for the indicated method.
      :rtype: str