code: def _get_rf(model, sample_pil_img):
      # define model functions
      def model_fn():
          model.eval()
          return model
  
      input_shape = np.array(sample_pil_img).shape
  
      rf = PytorchReceptiveField(model_fn)
      rf_params = rf.compute(input_shape=input_shape)
      return rf, rf_params
  
imports: from receptivefield.pytorch import PytorchReceptiveField
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: _get_rf(model, sample_pil_img) and returns: rf,  rf_params, model