Section 252. The supreme judicial court shall have jurisdiction in equity on petition of the attorney general, of the railroad corporation, of any public body or of any other party interested to compel the observance of and to restrain the violation of all laws which govern railroad corporations and of all orders, rules and regulations made in accordance with the provisions of this chapter by any public body or by the department and to review, annul, modify or amend the rulings of any state department relative to such corporations as law and justice may require. The superior court shall have such jurisdiction concurrent with the supreme judicial court to enforce the provisions of sections forty-eight, one hundred and ninety-three and two hundred and six.