code: def __init__(self, nsd, order):
      self.nsd = nsd
      self.order = order
      self.compute_basis()
  
file_path: sympy/examples/advanced/fem.py
imports: from sympy import symbols, Symbol, factorial, Rational, zeros, eye, integrate, diff, pprint, reduced
label_desc: Use image node_id 1 to create a new Lagrange object  with example: obj = Lagrange(nsd, order)