code: def _fixupRandomEncoderParams(params, minVal, maxVal, minResolution):
      """
      Given model params, figure out the correct parameters for the
      RandomDistributed encoder. Modifies params in place.
      """
      encodersDict = params["modelConfig"]["modelParams"][
          "sensorParams"
      ]["encoders"]
  
      for encoder in encodersDict.itervalues():
          if encoder is not None:
              if encoder["type"] == "RandomDistributedScalarEncoder":
                  resolution = max(
                      minResolution,
                      (maxVal - minVal) / encoder.pop("numBuckets"),
                  )
                  encodersDict["c1"]["resolution"] = resolution
  
imports: import json
  import numpy
  import os
  from pkg_resources import resource_stream
label_desc: Use image node_id 3 for calling a global function with example usage: _fixupRandomEncoderParams(params, minVal, maxVal, minResolution) without return types