docstr: Tests that fqn_to_module returns None when it tries to
  find an fqn of a module outside the model
docstr_tok: ["Tests","that","fqn_to_module","returns","None","when","it","tries","to","find","an","fqn","of","a","module","outside","the","model"]
code: def test_fqn_to_module_fail(self):
      """
      Tests that fqn_to_module returns None when it tries to
      find an fqn of a module outside the model
      """
      for model_class in model_list:
          model = model_class()
          fqn = "foo.bar.baz"
          check_module = fqn_to_module(model, fqn)
          self.assertEqual(check_module, None)
  
file_path: pytorch/test/ao/sparsity/test_sparsity_utils.py
imports: import logging
  import torch
  from torch.ao.pruning.sparsifier.utils import fqn_to_module, get_arg_info_from_tensor_fqn, module_to_fqn
  from torch.testing._internal.common_quantization import ConvBnReLUModel, ConvModel, FunctionalLinear, LinearAddModel, ManualEmbeddingBagLinear, SingleLayerLinearModel, TwoLayerLinearModel
  from torch.testing._internal.common_utils import TestCase
label_desc: Use image node_id 5 for calling the TestSparsityUtilFunctions obj's underlying member method code with example usage: obj.test_fqn_to_module_fail() without return types