code: def run_server(cls, args=None, **kwargs):
          
          if args is None:
              args = sys.argv[1:]
          args = [cls.__name__] + list(args)
          green_mode = getattr(cls, 'green_mode', None)
          kwargs.setdefault("green_mode", green_mode)
          return run((cls,), args, **kwargs)
docs: Run the class as a device server.
          It is based on the tango.server.run method.
  
          The difference is that the device class
          and server name are automatically given.
  
          Args:
              args (iterable): args as given in the tango.server.run method
                               without the server name. If None, the sys.argv
                               list is used
              kwargs: the other keywords argument are as given
                      in the tango.server.run method.