code: def fix_variables(self, fixed):
          
          for v, val in fixed.items():
              self.fix_variable(v, val)
docs: Fix the value of the variables and remove it from a binary quadratic model.
  
          Args:
              fixed (dict):
                  A dictionary of variable assignments.
  
          Examples:
              >>> bqm = dimod.BinaryQuadraticModel({'a': -.5, 'b': 0., 'c': 5}, {('a', 'b'): -1}, 0.0, dimod.SPIN)
              >>> bqm.fix_variables({'a': -1, 'b': +1})