code: def render(opts, functions, states=None, proxy=None, context=None):
      '''
      Returns the render modules
      '''
      if context is None:
          context = {}
  
      pack = {'__salt__': functions,
              '__grains__': opts.get('grains', {}),
              '__context__': context}
  
      if states:
          pack['__states__'] = states
      pack['__proxy__'] = proxy or {}
      ret = LazyLoader(
          _module_dirs(
              opts,
              'renderers',
              'render',
              ext_type_dirs='render_dirs',
          ),
          opts,
          tag='render',
          pack=pack,
      )
      rend = FilterDictWrapper(ret, '.render')
  
      if not check_render_pipe_str(opts['renderer'], rend, opts['renderer_blacklist'], opts['renderer_whitelist']):
          err = ('The renderer {0} is unavailable, this error is often because '
                 'the needed software is unavailable'.format(opts['renderer']))
          log.critical(err)
          raise LoaderError(err)
      return renf render(opts, functions, states=None, proxy=None, context=None):
      '''
      Returns the render modules
      '''
      if context is None:
          context = {}
  
      pack = {'__salt__': functions,
              '__grains__': opts.get('grains', {}),
              '__context__': context}
  
      if states:
          pack['__states__'] = states
      pack['__proxy__'] = proxy or {}
      ret = LazyLoader(
          _module_dirs(
              opts,
              'renderers',
              'render',
              ext_type_dirs='render_dirs',
          ),
          opts,
          tag='render',
          pack=pack,
      )
      rend = FilterDictWrapper(ret, '.render')
  
      if not check_render_pipe_str(opts['renderer'], rend, opts['renderer_blacklist'], opts['renderer_whitelist']):
          err = ('The renderer {0} is unavailable, this error is often because '
                 'the needed software is unavailable'.format(opts['renderer']))
          log.critical(err)
          raise LoaderError(err)
      return rend
docs: Returns the render modules