code: def get(self, thread=None, plugin=None):
          
          if plugin is not None:
              if thread is None:
                  threads_list = {}
                  for key in self.threads.keys():
                      if self.threads[key].plugin == plugin:
                          threads_list[key] = self.threads[key]
                  return threads_list
              else:
                  if thread in self.threads.keys():
                      if self.threads[thread].plugin == plugin:
                          return self.threads[thread]
                      else:
                          return None
                  else:
                      return None
          else:
              if thread is None:
                  return self.threads
              else:
                  if thread in self.threads.keys():
                      return self.threads[thread]
                  else:
                      return None
docs: Get one or more threads.
  
          :param thread: Name of the thread
          :type thread: str
          :param plugin: Plugin object, under which the thread was registered
          :type plugin: GwBasePattern