code: def _import_lua_dependencies(lua, lua_globals):
          
          if sys.platform not in ('darwin', 'windows'):
              import ctypes
              ctypes.CDLL('liblua5.2.so', mode=ctypes.RTLD_GLOBAL)
  
          try:
              lua_globals.cjson = lua.eval('require "cjson"')
          except RuntimeError:
              raise RuntimeError("cjson not installed")
docs: Imports lua dependencies that are supported by redis lua scripts.
  
          The current implementation is fragile to the target platform and lua version
          and may be disabled if these imports are not needed.
  
          Included:
              - cjson lib.
          Pending:
              - base lib.
              - table lib.
              - string lib.
              - math lib.
              - debug lib.
              - cmsgpack lib.