code: def test_function_list_on_cluster(self, r):
      r.function_load(f"#!{engine} name={lib} \n {function}")
      function_list = [
          [
              b"library_name",
              b"mylib",
              b"engine",
              b"LUA",
              b"functions",
              [
                  [
                      b"name",
                      b"myfunc",
                      b"description",
                      None,
                      b"flags",
                      [b"no-writes"],
                  ]
              ],
          ]
      ]
      resp3_function_list = [
          {
              b"library_name": b"mylib",
              b"engine": b"LUA",
              b"functions": [
                  {
                      b"name": b"myfunc",
                      b"description": None,
                      b"flags": {b"no-writes"},
                  }
              ],
          }
      ]
      primaries = r.get_primaries()
      res = {}
      resp3_res = {}
      for node in primaries:
          res[node.name] = function_list
          resp3_res[node.name] = resp3_function_list
      assert_resp_response(r, r.function_list(), res, resp3_res)
      assert_resp_response(
          r, r.function_list(library="*lib"), res, resp3_res
      )
      node = primaries[0].name
      code = f"#!{engine} name={lib} \n {function}".encode()
      res[node][0].extend([b"library_code", code])
      resp3_res[node][0][b"library_code"] = code
      assert_resp_response(
          r, r.function_list(withcode=True), res, resp3_res
      )
  
file_path: redis-py/tests/test_function.py
imports: import pytest
  from redis.exceptions import ResponseError
  from .conftest import assert_resp_response, skip_if_server_version_lt
label_desc: Use image node_id 6 for calling the TestFunction obj's underlying member method code with example usage: obj.test_function_list_on_cluster(r) without return types