code: def reportDeprecatedWorkerNameUsage(message, stacklevel=None, filename=None,
                                      lineno=None):
      
  
      if filename is None:
          if stacklevel is None:
              # Warning will refer to the caller of the caller of this function.
              stacklevel = 3
          else:
              stacklevel += 2
  
          warnings.warn(DeprecatedWorkerNameWarning(message), None, stacklevel)
  
      else:
          assert stacklevel is None
  
          if lineno is None:
              lineno = 0
  
          warnings.warn_explicit(
              DeprecatedWorkerNameWarning(message),
              DeprecatedWorkerNameWarning,
              filename, lineno)
docs: Hook that is ran when old API name is used.
  
      :param stacklevel: stack level relative to the caller's frame.
      Defaults to caller of the caller of this function.