code: def set_element(self, data, result, idx, strategy=None):
      strategy = strategy or self.element_strategy
      val = data.draw(strategy)
      result[idx] = val
      if self._report_overflow and val != result[idx] and val == val:
          note_deprecation(
              "Generated array element %r from %r cannot be represented as "
              "dtype %r - instead it becomes %r (type %r).  Consider using a more "
              "precise strategy, for example passing the `width` argument to "
              "`floats()`, as this will be an error in a future version."
              % (
                  val,
                  strategy,
                  self.dtype,
                  result[idx],
                  type(result[idx]),
              ),
              since="2019-07-28",
          )
          # Because the message includes the value of the generated element,
          # it would be easy to spam users with thousands of warnings.
          # We therefore only warn once per draw, unless in verbose mode.
          self._report_overflow = (
              current_verbosity() >= Verbosity.verbose
          )
  
imports: from __future__ import absolute_import, division, print_function
  import math
  import re
  from collections import namedtuple
  import numpy
  import hypothesis.internal.conjecture.utils
  import hypothesis.strategies._internal.core
  from hypothesis import Verbosity, assume
  from hypothesis._settings import note_deprecation
  from hypothesis.errors import InvalidArgument
  from hypothesis.internal.compat import PY2, hrange, integer_types, quiet_raise, string_types
  from hypothesis.internal.coverage import check_function
  from hypothesis.internal.reflection import proxies, reserved_means_kwonly_star
  from hypothesis.internal.validation import check_type, check_valid_interval
  from hypothesis.reporting import current_verbosity
  from hypothesis.strategies._internal import SearchStrategy
  from hypothesis.utils.conventions import UniqueIdentifier, not_set
label_desc: Use image node_id 2 for calling the ArrayStrategy obj's underlying member method code with example usage: obj.set_element(data, result, idx, strategy) without return types