code: def imported_target_specs(cls, kwargs=None, payload=None):
      
      if kwargs is not None:
        assert payload is None, 'may not provide both kwargs and payload'
        field = cls.imported_target_kwargs_field
        target_representation = kwargs
      else:
        assert payload is not None, 'must provide either kwargs or payload'
        field = cls.imported_target_payload_field
        target_representation = payload.as_dict()
  
      specs = []
      for item in target_representation.get(field, ()):
        if not isinstance(item, string_types):
          raise cls.ExpectedAddressError(
            'expected imports to contain string addresses, got {obj} (type: {found_class}) instead.'
            .format(obj=item, found_class=type(item).__name__)
          )
        specs.append(item)
  
      return specs
docs: :param kwargs: A kwargs dict representing Target.__init__(**kwargs) (Optional).
      :param payload: A Payload object representing the Target.__init__(payload=...) param.  (Optional).
      :returns: list of target specs to be imported.
      :rtype: list of str