When composing music, how to be influenced by a soundtrack (of films, video games...) without copying? - eviltoast

When composing music, how to be influenced by a soundtrack (of films, video games…) without copying?