code: def test_get_unique_params_idxs():
      class A(EditableModule):
          def __init__(self, a):
              self.b = a * a
              self.c = a * a * a
  
          def mult(self, x):
              return self.b * self.c * x
  
          def getparamnames(self, methodname, prefix=""):
              if methodname == "mult":
                  return [prefix + "b", prefix + "c"]
              else:
                  raise KeyError()
  
      a = torch.tensor(2.0)
      x = torch.tensor(4.0)
      alpha = A(a)
      assert alpha.mult(x) == torch.tensor(128.0)
      assert alpha.getparams("mult") == [
          torch.tensor(4.0),
          torch.tensor(8.0),
      ]
      assert alpha._get_unique_params_idxs("mult") == [0, 1]
  
imports: import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_unique_params_idxs() and returns: unknown, list