Instruction: Provide an example of a generic function that takes an argument and returns a value of the same type as the argument.
Context: Evaluates the candidate's proficiency with TypeScript generics, especially their understanding of advanced generic patterns like conditional types and type inference within generics.