code: def create_command(self, name, operation, **kwargs):
          
          if not isinstance(operation, six.string_types):
              raise ValueError("Operation must be a string. Got '{}'".format(operation))
  
          name = ' '.join(name.split())
  
          client_factory = kwargs.get('client_factory', None)
  
          def _command_handler(command_args):
              op = CLICommandsLoader._get_op_handler(operation)
              client = client_factory(command_args) if client_factory else None
              result = op(client, **command_args) if client else op(**command_args)
              return result
  
          def arguments_loader():
              return list(extract_args_from_signature(CLICommandsLoader._get_op_handler(operation),
                                                      excluded_params=self.excluded_command_handler_args))
  
          def description_loader():
              return extract_full_summary_from_signature(CLICommandsLoader._get_op_handler(operation))
  
          kwargs['arguments_loader'] = arguments_loader
          kwargs['description_loader'] = description_loader
  
          cmd = self.command_cls(self.cli_ctx, name, _command_handler, **kwargs)
          return cmd
docs: Constructs the command object that can then be added to the command table