code: def register_field_strategy(field_type, strategy):
      # type: (Type[AnyField], st.SearchStrategy) -> None
      """Add an entry to the global field-to-strategy lookup used by
      :func:`~hypothesis.extra.django.from_field`.
  
      ``field_type`` must be a subtype of :class:`django.db.models.Field` or
      :class:`django.forms.Field`, which must not already be registered.
      ``strategy`` must be a :class:`~hypothesis.strategies.SearchStrategy`.
      """
      if not issubclass(field_type, (dm.Field, df.Field)):
          raise InvalidArgument(
              "field_type=%r must be a subtype of Field" % (field_type,)
          )
      check_type(st.SearchStrategy, strategy, "strategy")
      if field_type in _global_field_lookup:
          raise InvalidArgument(
              "field_type=%r already has a registered strategy (%r)"
              % (field_type, _global_field_lookup[field_type])
          )
      if issubclass(field_type, dm.AutoField):
          raise InvalidArgument(
              "Cannot register a strategy for an AutoField"
          )
      _global_field_lookup[field_type] = strategy
  
imports: from __future__ import absolute_import, division, print_function
  import re
  import string
  from datetime import timedelta
  from decimal import Decimal
  import django
  import django.db.models
  import django.forms
  from django.core.validators import validate_ipv4_address, validate_ipv6_address, validate_ipv46_address
  import hypothesis.strategies
  from hypothesis.errors import InvalidArgument
  from hypothesis.extra.pytz import timezones
  from hypothesis.internal.validation import check_type
  from hypothesis.provisional import ip4_addr_strings, ip6_addr_strings, urls
  from hypothesis.strategies import emails
label_desc: Use image node_id 13 for calling a global function with example usage: register_field_strategy(field_type, strategy) without return types