class_docstr: Test LongTermMemory functionality.
class_docstr_tok: ["Test","LongTermMemory","functionality","."]
code: def test_shared_encoders(self):
      _test_bb2_fid(
          KnowledgeAccessMethod.ALL,
          share_search_and_memory_query_encoder=True,
      )
  
imports: import copy
  import torch.cuda
  import unittest
  from parlai.core.agents import create_agent
  import parlai.utils.testing
label_desc: Use image node_id 1 for calling the TestLongTermMemory obj's underlying member method code with example usage: obj.test_shared_encoders() without return types