code: def plot_receptive_field(
      model, sample_pil_img, layout=(2, 2), figsize=(6, 6)
  ):
      rf, rf_params = _get_rf(
          model, sample_pil_img
      )  # pylint: disable=unused-variable
      return rf.plot_rf_grids(
          custom_image=sample_pil_img, figsize=figsize, layout=layout
      )
  
imports: from receptivefield.pytorch import PytorchReceptiveField
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: plot_receptive_field(model, sample_pil_img, layout, figsize) and returns: rf