def METHOD_NAME(model, data, *args):
  if len(args)==7 and type(args[6]) is bool:
    message = ("This function signature has been deprecated and will be removed in future releases of Pinocchio. "
               "Please change for the new signature of forwardDynamics(model,data[,q],v,tau,J,gamma[,inv_damping]).")
    _warnings.warn(message, category=DeprecatedWarning, stacklevel=2)
    q = args[0]
    v = args[1]
    tau = args[2]
    J = args[3]
    gamma = args[4]
    inv_damping = args[5]
    updateKinematics = args[6]
    if updateKinematics:
      return pin.METHOD_NAME(model,data,q,v,tau,J,gamma,inv_damping)
    else:
      return pin.METHOD_NAME(model,data,tau,J,gamma,inv_damping)
  return pin.METHOD_NAME(model, data, *args)