code: def _convert_edit_check_strand(strand, edit_in):
          
          if isinstance(edit_in, hgvs.edit.NARefAlt):
              if strand == 1:
                  edit_out = copy.deepcopy(edit_in)
              else:
                  try:
                      # if smells like an int, do nothing
                      # TODO: should use ref_n, right?
                      int(edit_in.ref)
                      ref = edit_in.ref
                  except (ValueError, TypeError):
                      ref = reverse_complement(edit_in.ref)
                  edit_out = hgvs.edit.NARefAlt(
                      ref=ref,
                      alt=reverse_complement(edit_in.alt),
                  )
          elif isinstance(edit_in, hgvs.edit.Dup):
              if strand == 1:
                  edit_out = copy.deepcopy(edit_in)
              else:
                  edit_out = hgvs.edit.Dup(ref=reverse_complement(edit_in.ref))
          elif isinstance(edit_in, hgvs.edit.Inv):
              if strand == 1:
                  edit_out = copy.deepcopy(edit_in)
              else:
                  try:
                      int(edit_in.ref)
                      ref = edit_in.ref
                  except (ValueError, TypeError):
                      ref = reverse_complement(edit_in.ref)
                  edit_out = hgvs.edit.Inv(ref=ref)
          else:
              raise NotImplementedError("Only NARefAlt/Dup/Inv types are currently implemented")
          return edit_out
docs: Convert an edit from one type to another, based on the stand and type