code: def set_params(self, nbins=None):
      if nbins is not None:
          self.nbins = int(nbins)
  
imports: import numpy
  import math
  from mpl_toolkits.axisartist.grid_finder import ExtremeFinderSimple
label_desc: Use image node_id 2 for calling the LocatorBase obj's underlying member method code with example usage: obj.set_params(nbins) without return types