code: def get_id(self, name, recurse=True):
          
          self._dlog("getting id '{}'".format(name))
          var = self._search("vars", name, recurse)
          return var
docs: Get the first id matching ``name``. Will either be a local
          or a var.
  
          :name: TODO
          :returns: TODO