code: def make_is_type_mock(true_type_matchers):
      """Return a function that mocks is_type.
  
      When you do this:
      mock_is_type.side_effect = make_is_type_mock("foo.bar.Baz")
  
      ...then when you call mock_is_type(my_type, "foo.bar.Baz") it will return
      True (and False otherwise).
  
      You can also pass in a tuple.
      """
      if type(true_type_matchers) is not tuple:
          true_type_matchers = (true_type_matchers,)
  
      def new_is_type(obj, type_matchers):
          if type(type_matchers) is not tuple:
              type_matchers = (type_matchers,)
  
          for type_matcher in type_matchers:
              if type_matcher in true_type_matchers:
                  return True
          return False
  
      return new_is_type
  
imports: import dataclasses
  import time
  import unittest
  from collections import namedtuple
  from unittest.mock import Mock, PropertyMock, call, patch
  import numpy
  import pandas
  import pytest
  import streamlit
  from streamlit import type_util
  from streamlit.elements import write
  from streamlit.error_util import handle_uncaught_app_exception
  from streamlit.errors import StreamlitAPIException
  from streamlit.runtime.state import QueryParamsProxy, SessionStateProxy
label_desc: Use image node_id 1 for calling a global function with example usage: make_is_type_mock(true_type_matchers) and returns: new_is_type, False, True