code: def get_source(self, objtxt):
          
          from spyder_kernels.utils.dochelpers import getsource
  
          obj, valid = self._eval(objtxt)
          if valid:
              return getsource(obj)
docs: Get object source