class_docstr: Test Google Cloud Platform utilities.
class_docstr_tok: ["Test","Google","Cloud","Platform","utilities","."]
docstr: Test is_google_cloud_instance.
docstr_tok: ["Test","is_google_cloud_instance","."]
code: def test_is_gcp_instance(self, uo):
      """Test is_google_cloud_instance."""
      from satpy.demo._google_cloud_platform import (
          URLError,
          is_google_cloud_instance,
      )
  
      uo.side_effect = URLError("Test Environment")
      assert not is_google_cloud_instance()
  
imports: from __future__ import annotations
  import contextlib
  import io
  import os
  import sys
  import tarfile
  import unittest
  from collections import defaultdict
  from unittest import mock
  import pytest
label_desc: Use image node_id 1 for calling the TestGCPUtils obj's underlying member method code with example usage: obj.test_is_gcp_instance(uo) without return types