code: def mock_render(num_frames: int = 1) -> Iterator[None]:
      """Mocked Blender rendering.
  
      Args:
        num_frames: The number of frames per scene to render.
  
      Yields:
        None
      """
  
      # Use closure instead of `functools.partial` because `partial` does not
      # implement the bound method descriptor.
  
      def render_fn(*args, **kwargs):
          return _render(*args, **kwargs, num_frames=num_frames)
  
      with mock.patch(
          "kubric.renderer.blender.Blender.render", render_fn
      ):
          yield
  
file_path: kubric/kubric/sunds/render_mock_utils.py
imports: from __future__ import annotations
  import contextlib
  import functools
  from typing import Iterator, Optional, Sequence
  from unittest import mock
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: mock_render(num_frames) and returns: _render