code: def test_open_dataset():
      """Test xr.open_dataset wrapper."""
      fn = mock.MagicMock()
      str_file_path = "path/to/file.nc"
      with mock.patch("xarray.open_dataset") as xr_open:
          _ = open_dataset(fn, decode_cf=True, chunks=500)
          fn.open.assert_called_once_with()
          xr_open.assert_called_once_with(
              fn.open(), decode_cf=True, chunks=500
          )
  
          xr_open.reset_mock()
          _ = open_dataset(str_file_path, decode_cf=True, chunks=500)
          xr_open.assert_called_once_with(
              str_file_path, decode_cf=True, chunks=500
          )
  
file_path: satpy/satpy/tests/test_file_handlers.py
imports: import unittest
  from datetime import datetime, timedelta
  from unittest import mock
  import numpy
  import pytest
  from satpy.readers.file_handlers import BaseFileHandler, open_dataset
  from satpy.tests.utils import FakeFileHandler
label_desc: Use image node_id 1 for calling a global function with example usage: test_open_dataset() without return types