code: def test_distributed_device_map(self):
      net = core.Net("name")
      net.FC(["X", "W"], ["Y"])
      d = caffe2_pb2.DeviceOption()
      nn = ng.NNModule(net, {"X": d, "W": d})
  
      with self.assertRaises(Exception):
          nn = ng.NNModule(net, {"X": d, "Fake": d})
  
imports: from caffe2.python import core, test_util
  from caffe2.proto import caffe2_pb2
  import caffe2.python.nomnigraph
  from hypothesis import given
  import hypothesis.strategies
  import random
label_desc: Use image node_id 31 for calling the TestBindings obj's underlying member method code with example usage: obj.test_distributed_device_map() without return types