code: def fprint(self, obj, stream=None, **kwargs):
          
          if stream is None:
              stream = sys.stdout
  
          options = self.options
          options.update(kwargs)
  
          if isinstance(obj, dimod.SampleSet):
              self._print_sampleset(obj, stream, **options)
              return
  
          raise TypeError("cannot format type {}".format(type(obj)))
docs: Prints the formatted representation of the object on stream