class_docstr: Mock SEVIRI L2 BUFR data.
docstr: Read data from mock file.
docstr_tok: ["Read","data","from","mock","file","."]
code: def get_data(self, dataset_info):
      """Read data from mock file."""
      with mock.patch(
          "satpy.readers.seviri_l2_bufr.open", self.m, create=True
      ):
          with mock.patch(
              "eccodes.codes_bufr_new_from_file",
              side_effect=[self.buf1, self.buf1, None],
          ) as ec1:
              ec1.return_value = ec1.side_effect
              with mock.patch("eccodes.codes_set") as ec2:
                  ec2.return_value = 1
                  with mock.patch("eccodes.codes_release") as ec5:
                      ec5.return_value = 1
                      z = self.fh.get_dataset(
                          make_dataid(
                              name=dataset_info["name"],
                              resolution=48000,
                          ),
                          dataset_info,
                      )
  
      return z
  
imports: import sys
  import unittest
  from datetime import datetime
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  from pyresample import geometry
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 2 for calling the SeviriL2BufrData obj's underlying member method code with example usage: obj.get_data(dataset_info) and returns: z