docs: def get_command_from_module(
          command_module,
          remote_connection: environ.RemoteConnection
  ):
      """
      Returns the execution command to use for the specified module, which may
      be different depending upon remote connection
  
      :param command_module:
      :param remote_connection:
      :return:
      """
  
      use_remote = (
          remote_connection.active and
          hasattr(command_module, 'execute_remote')
      )
      return (
          command_module.execute_remote
          if use_remote else
          command_module.execute
      )