code: def as_static(self, copy: bool = True) -> 'StaticBinning':
          
          if copy:
              return StaticBinning(bins=self.bins.copy(),
                                   includes_right_edge=self.includes_right_edge)
          else:
              return self
docs: Convert binning to a static form.
  
          Returns
          -------
          StaticBinning
              A new static binning with a copy of bins.
  
          Parameters
          ----------
          copy : if True, returns itself (already satisfying conditions).