code: def rounded_corner(
      orientation, r, angular_width=90, size=224, **kwds
  ):
      """Generate a "rounded corner" stimulus.
  
      This function is a flexible generator of "rounded corner" stimuli. It returns
      an image, represented as a numpy array of shape [size, size, 3].
  
      Args:
        orientation: The orientation of the curve, in degrees.
        r: radius of the curve
        angular_width: when r=0 and we have sharp corner, this controls the angle
          of the corner. For other radius values, it controls the sharpness of the
          corner and eventual divergence of the outer lines. Specified in degrees,
          defaults to 90 to give a traditional curve.
        size: Size of image.
  
        Note: Also inherits many arguments from sample_binary_image().
  
      Returns:
        An image, represented as a numpy array of shape [size, size, 3].
      """
      orientation *= 2 * np.pi / 360.0
      orientation += np.pi / 2.0
      angular_width *= 2 * np.pi / 360.0
      ang1, ang2 = (
          orientation - angular_width / 2.0,
          orientation + angular_width / 2.0 + np.pi,
      )
  
      @sample_binary_image(size, **kwds)
      def img(X, Y):
          X_, Y_ = (
              np.cos(ang1) * X + np.sin(ang1) * Y,
              np.cos(ang2) * X + np.sin(ang2) * Y,
          )
          X_, Y_ = X_ + r * (1 - 1 / np.sqrt(2.0)), Y_ + r * (
              1 - 1 / np.sqrt(2.0)
          )
          E = rmin(X_, Y_, r)
          return 10 * E
  
      return img
  
imports: import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: rounded_corner(orientation, r, angular_width, size) and returns: img, unknown