code: def getVariables(self):
          
          variables = lock_and_call(
              lambda: self._impl.getVariables(),
              self._lock
          )
          return EntityMap(variables, Variable)
docs: Get all the variables declared.