code: def dictionary_types(key_strategy=None, value_strategy=None):
      if key_strategy is None:
          key_strategy = signed_integer_types
      if value_strategy is None:
          value_strategy = st.one_of(
              bool_type,
              integer_types,
              st.sampled_from([pa.float32(), pa.float64()]),
              binary_type,
              string_type,
              fixed_size_binary_type,
          )
      return st.builds(pa.dictionary, key_strategy, value_strategy)
  
imports: import datetime
  import sys
  import pytest
  import hypothesis
  import hypothesis.strategies
  import hypothesis.extra.numpy
  import numpy
  import pyarrow
label_desc: Use image node_id 4 for calling a global function with example usage: dictionary_types(key_strategy, value_strategy) and returns: st